]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Silence a gcc warning.
authorBruno Haible <bruno@clisp.org>
Mon, 30 Apr 2001 11:25:15 +0000 (11:25 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 30 Apr 2001 11:25:15 +0000 (11:25 +0000)
intl/ChangeLog
intl/localcharset.c
lib/ChangeLog
lib/localcharset.c

index 7e76a15795c5e3543cfb6ce8404b45edfb1d78c6..d47b754c7ee523a4364b318ea7ce79007bf5afae 100644 (file)
@@ -1,3 +1,9 @@
+2001-04-30  Bruno Haible  <haible@clisp.cons.org>
+
+       Silence "gcc -Wall -Wwrite-strings" warnings.
+       * localcharset.c (charset_aliases): Change type to 'const char *'.
+       (get_charset_aliases): Change type of 'cp' to 'const char *'.
+
 2001-04-19  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext-0.10.37 released.
index 22e09e410a9682ad919c66044d8c0ca25d738993..61f8f3e8529ed4b5de04fad2f0f84642c14cf0af 100644 (file)
 /* Pointer to the contents of the charset.alias file, if it has already been
    read, else NULL.  Its format is:
    ALIAS_1 '\0' CANONICAL_1 '\0' ... ALIAS_n '\0' CANONICAL_n '\0' '\0'  */
-static char * volatile charset_aliases;
+static const char * volatile charset_aliases;
 
 /* Return a pointer to the contents of the charset.alias file.  */
 static const char *
 get_charset_aliases ()
 {
-  char *cp;
+  const char *cp;
 
   cp = charset_aliases;
   if (cp == NULL)
index 58fcffa6afd9bd852d1ba7f5502dd0ad9a876822..97ba8fc995d8401e92a969d6f7dd81a5e79efcbd 100644 (file)
@@ -1,3 +1,9 @@
+2001-04-30  Bruno Haible  <haible@clisp.cons.org>
+
+       Silence "gcc -Wall -Wwrite-strings" warnings.
+       * localcharset.c (charset_aliases): Change type to 'const char *'.
+       (get_charset_aliases): Change type of 'cp' to 'const char *'.
+
 2001-04-19  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext-0.10.37 released.
index 22e09e410a9682ad919c66044d8c0ca25d738993..61f8f3e8529ed4b5de04fad2f0f84642c14cf0af 100644 (file)
 /* Pointer to the contents of the charset.alias file, if it has already been
    read, else NULL.  Its format is:
    ALIAS_1 '\0' CANONICAL_1 '\0' ... ALIAS_n '\0' CANONICAL_n '\0' '\0'  */
-static char * volatile charset_aliases;
+static const char * volatile charset_aliases;
 
 /* Return a pointer to the contents of the charset.alias file.  */
 static const char *
 get_charset_aliases ()
 {
-  char *cp;
+  const char *cp;
 
   cp = charset_aliases;
   if (cp == NULL)