From b14d172a0e5de9ace9f9cf99cbd46b0a29e7f901 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 2 May 2001 21:42:04 +0000 Subject: Avoid more const warnings. --- src/ChangeLog | 2 ++ src/msgcomm.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.1