]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Silence a gcc warning.
authorBruno Haible <bruno@clisp.org>
Tue, 24 Jul 2001 12:52:24 +0000 (12:52 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 28 Jun 2009 14:35:51 +0000 (16:35 +0200)
intl/ChangeLog
intl/localcharset.c
lib/ChangeLog
lib/localcharset.c

index de85bb40846142db1c1324ed087d382c2af5d14a..0a72247b2a9b1394c3c0f1ba96f8fd450cc20ebb 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-05-23  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext-0.10.38 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 def8550aa296b03ad91ddb5e3e208183c048ee93..025ab30a535218016fd8ed18a4783e15bec84553 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-05-23  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext-0.10.38 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)