diff options
author | Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> | 2022-09-01 10:02:30 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-09-22 08:48:04 -0300 |
commit | de477abcaaabb1f9815cb63876637a47a95e7ac1 (patch) | |
tree | 22bd98fe9a4aaa03257147db719e844fcdb42f7a /catgets | |
parent | 340097d0b50eff9d3058e06c6989ae398c653d4a (diff) | |
download | glibc-de477abcaaabb1f9815cb63876637a47a95e7ac1.zip glibc-de477abcaaabb1f9815cb63876637a47a95e7ac1.tar.gz glibc-de477abcaaabb1f9815cb63876637a47a95e7ac1.tar.bz2 |
Use '%z' instead of '%Z' on printf functions
The Z modifier is a nonstandard synonymn for z (that predates z
itself) and compiler might issue an warning for in invalid
conversion specifier.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'catgets')
-rw-r--r-- | catgets/gencat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/catgets/gencat.c b/catgets/gencat.c index cebf1fd..dec4d93 100644 --- a/catgets/gencat.c +++ b/catgets/gencat.c @@ -1033,7 +1033,7 @@ write_out (struct catalog *catalog, const char *output_name, /* If the current message set has a symbolic name write this out first. */ if (set_run->symbol != NULL) - fprintf (fp, "%s#define %sSet %#x\t/* %s:%Zu */\n", + fprintf (fp, "%s#define %sSet %#x\t/* %s:%zu */\n", first ? "" : "\n", set_run->symbol, set_run->number - 1, set_run->fname, set_run->line); first = 0; @@ -1047,12 +1047,12 @@ write_out (struct catalog *catalog, const char *output_name, if (message_run->symbol != NULL) { if (set_run->symbol == NULL) - fprintf (fp, "#define AutomaticSet%d%s %#x\t/* %s:%Zu */\n", + fprintf (fp, "#define AutomaticSet%d%s %#x\t/* %s:%zu */\n", set_run->number, message_run->symbol, message_run->number, message_run->fname, message_run->line); else - fprintf (fp, "#define %s%s %#x\t/* %s:%Zu */\n", + fprintf (fp, "#define %s%s %#x\t/* %s:%zu */\n", set_run->symbol, message_run->symbol, message_run->number, message_run->fname, message_run->line); |