From 9778fd673b39a54a532b40007b8715ebeac3abf1 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 27 Apr 1997 23:33:49 +0000 Subject: (cfcc_msg): File-scope constant. (STRTOX): Use new constant as error message format string in macro. Suggestion from Andreas Schwab. --- src/printf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/printf.c') 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; \ } \ } \ -- cgit v1.2.3-54-g00ecf