From: Jim Meyering Date: Sun, 27 Apr 1997 23:33:49 +0000 (+0000) Subject: (cfcc_msg): File-scope constant. X-Git-Tag: SH-UTILS-1_16a~120 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9778fd673b39a54a532b40007b8715ebeac3abf1;p=thirdparty%2Fcoreutils.git (cfcc_msg): File-scope constant. (STRTOX): Use new constant as error message format string in macro. Suggestion from Andreas Schwab. --- diff --git a/src/printf.c b/src/printf.c index 6b05014267..fb395b3697 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; \ } \ } \