]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use const.
authorBruno Haible <bruno@clisp.org>
Sun, 7 Dec 2008 22:01:13 +0000 (22:01 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:56 +0000 (12:15 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/write-po.c
gettext-tools/src/write-stringtable.c

index 46963ae289ddf65015e172c9c558542e928ace9a..392f436062506104129478701139d4b7a801d074 100644 (file)
@@ -1,3 +1,9 @@
+2008-12-07  Bruno Haible  <bruno@clisp.org>
+
+       * write-po.c (message_print_comment_filepos): Use a 'const' pointer
+       where possible.
+       * write-stringtable.c (write_message): Likewise.
+
 2008-12-07  Bruno Haible  <bruno@clisp.org>
 
        Avoid gcc -Wredundant-decls warnings.
index d0acdb17432a75921f6fc8940ed77a2ae6c85e7d..6f14dce9fd9849c8d9d2e218e452093836f394db 100644 (file)
@@ -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];
index 348e4224c2b5f1e9bae67b6eb0c99f47b563c70c..43419426fdc610bb4d079264b7316a4b1729db7d 100644 (file)
@@ -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] == '/')