]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid more const warnings.
authorBruno Haible <bruno@clisp.org>
Wed, 2 May 2001 21:42:04 +0000 (21:42 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 2 May 2001 21:42:04 +0000 (21:42 +0000)
src/ChangeLog
src/msgcomm.c

index 740082c1bea5ef3f100546ab97de7a7d8d84e69e..47a2b762d85a5bf8d8d7fc18ff60263cd7a92985 100644 (file)
@@ -22,6 +22,8 @@
        * message.h (message_alloc): Add const to prototype.
        * message.c (message_alloc): Add const to argument type.
        * msgcmp.c (compare_class_ty): Add const to 'domain' field.
+       * msgcomm.c (default_domain): Add const.
+       (main): Add const to 'file_name' variable.
        * xgettext.c (default_domain): Add const.
        (msgstr_prefix): Likewise.
        (msgstr_suffix): Likewise.
index 2ad355a8a346199551755c0ff02446d56c89792b..42022704320f75b08a2b3b365c83084cb63bc66a 100644 (file)
@@ -55,7 +55,7 @@
 static int line_comment = 1;
 
 /* Name of default domain file.  If not set defaults to messages.po.  */
-static char *default_domain;
+static const char *default_domain;
 
 /* Force output of PO file even if empty.  */
 static int force_po;
@@ -138,7 +138,7 @@ main (argc, argv)
   message_list_ty *mlp;
   int sort_by_msgid = 0;
   int sort_by_filepos = 0;
-  char *file_name;
+  const char *file_name;
   const char *files_from = NULL;
   string_list_ty *file_list;
   char *output_file = NULL;