From: Bruno Haible Date: Wed, 2 May 2001 21:42:04 +0000 (+0000) Subject: Avoid more const warnings. X-Git-Tag: v0.11~742 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b14d172a0e5de9ace9f9cf99cbd46b0a29e7f901;p=thirdparty%2Fgettext.git Avoid more const warnings. --- diff --git a/src/ChangeLog b/src/ChangeLog index 740082c1b..47a2b762d 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 2ad355a8a..420227043 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;