From: Bruno Haible Date: Sun, 7 Dec 2008 22:01:13 +0000 (+0000) Subject: Use const. X-Git-Tag: v0.18~285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=678fbfb3ef38ec57d9fc85344a2e7f6a310d1fde;p=thirdparty%2Fgettext.git Use const. --- diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 46963ae28..392f43606 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,9 @@ +2008-12-07 Bruno Haible + + * write-po.c (message_print_comment_filepos): Use a 'const' pointer + where possible. + * write-stringtable.c (write_message): Likewise. + 2008-12-07 Bruno Haible Avoid gcc -Wredundant-decls warnings. diff --git a/gettext-tools/src/write-po.c b/gettext-tools/src/write-po.c index d0acdb174..6f14dce9f 100644 --- a/gettext-tools/src/write-po.c +++ b/gettext-tools/src/write-po.c @@ -321,7 +321,7 @@ message_print_comment_filepos (const message_ty *mp, ostream_t stream, for (j = 0; j < mp->filepos_count; ++j) { lex_pos_ty *pp = &mp->filepos[j]; - char *cp = pp->file_name; + const char *cp = pp->file_name; char *str; while (cp[0] == '.' && cp[1] == '/') @@ -349,7 +349,7 @@ message_print_comment_filepos (const message_ty *mp, ostream_t stream, { lex_pos_ty *pp; char buffer[21]; - char *cp; + const char *cp; size_t len; pp = &mp->filepos[j]; diff --git a/gettext-tools/src/write-stringtable.c b/gettext-tools/src/write-stringtable.c index 348e4224c..43419426f 100644 --- a/gettext-tools/src/write-stringtable.c +++ b/gettext-tools/src/write-stringtable.c @@ -194,7 +194,7 @@ write_message (ostream_t stream, const message_ty *mp, for (j = 0; j < mp->filepos_count; ++j) { lex_pos_ty *pp = &mp->filepos[j]; - char *cp = pp->file_name; + const char *cp = pp->file_name; char *str; while (cp[0] == '.' && cp[1] == '/')