Remove const qualifiers from encoding converter components.
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 16 Jul 2010 13:42:40 +0000 (15:42 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 16 Jul 2010 13:42:40 +0000 (15:42 +0200)
These elements have to be freed.  Therefore const is not
appropriate.

src/libpspp/i18n.c

index 340d71d776dcccc120891afac1ee09c36317614d..0e9b2b1b3863bf6326d238d7f9508aefb17f8894 100644 (file)
@@ -42,9 +42,9 @@
 #endif
 
 struct converter
 {
-    const char *tocode;
-    const char *fromcode;
+ {
+    char *tocode;
+    char *fromcode;
     iconv_t conv;
   };