summaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-04-27 23:33:49 +0000
committerJim Meyering <jim@meyering.net>1997-04-27 23:33:49 +0000
commit9778fd673b39a54a532b40007b8715ebeac3abf1 (patch)
treed8163f86bed10df7498dc73ecf9874dd6f643ed9 /src/printf.c
parent3a46eb96953fff7aebc601f55570932df88879ac (diff)
downloadcoreutils-9778fd673b39a54a532b40007b8715ebeac3abf1.tar.xz
(cfcc_msg): File-scope constant.
(STRTOX): Use new constant as error message format string in macro. Suggestion from Andreas Schwab.
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/printf.c b/src/printf.c
index 6b0501426..fb395b369 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -68,6 +68,9 @@ char *xmalloc ();
/* The value to return to the calling program. */
static int exit_status;
+static char *const cfcc_msg =
+ N_("%s: character(s) following character constant");
+
/* The name this program was run with. */
char *program_name;
@@ -146,8 +149,7 @@ FUNC_NAME (const char *s) \
val = *(unsigned char *) ++s; \
if (*++s != 0) \
{ \
- error (0, 0, \
- _("%s: character(s) following character constant"), s); \
+ error (0, 0, _(cfcc_msg), s); \
exit_status = 1; \
} \
} \