]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(cfcc_msg): File-scope constant.
authorJim Meyering <jim@meyering.net>
Sun, 27 Apr 1997 23:33:49 +0000 (23:33 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 27 Apr 1997 23:33:49 +0000 (23:33 +0000)
(STRTOX): Use new constant as error message format string in macro.
Suggestion from Andreas Schwab.

src/printf.c

index 6b05014267355beb5e38e89d20a87ca6123340d1..fb395b369749ec6f0e723c7c633adc65c0884976 100644 (file)
@@ -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;                                               \
        }                                                                \
     }                                                                   \