summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-05-02 21:42:04 +0000
committerBruno Haible <bruno@clisp.org>2001-05-02 21:42:04 +0000
commitb14d172a0e5de9ace9f9cf99cbd46b0a29e7f901 (patch)
tree0ac8c10888a1ed8e588065f77ebf6ce50429edfa /src
parente32818ef3a28571afa2f06c01a24d172a3cc4860 (diff)
downloadexternal_gettext-b14d172a0e5de9ace9f9cf99cbd46b0a29e7f901.zip
external_gettext-b14d172a0e5de9ace9f9cf99cbd46b0a29e7f901.tar.gz
external_gettext-b14d172a0e5de9ace9f9cf99cbd46b0a29e7f901.tar.bz2
Avoid more const warnings.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/msgcomm.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 740082c..47a2b76 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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.
diff --git a/src/msgcomm.c b/src/msgcomm.c
index 2ad355a..4202270 100644
--- a/src/msgcomm.c
+++ b/src/msgcomm.c
@@ -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;