Re: Committing trivial changes



Hi, Roland,

your trivial changes break compilation with --enable-charset and produce a lot of warnings about slang functions.

Patch attached.

-- 
Regards,
Andrew V. Samoilov.
2004-08-30  Andrew V. Samoilov  <sav bcs zp ua>

	* charsets.[ch]: Fix compilation and warnings.

--- mc/src/charsets.h	Mon Aug 30 09:22:48 2004
+++ mc/src/charsets.h	Mon Aug 30 12:42:32 2004
@@ -13,8 +13,8 @@ extern unsigned char conv_displ[256];
 extern unsigned char conv_input[256];
 
 struct codepage_desc {
-    const char *id;
-    const char *name;
+    char *id;
+    char *name;
 };
 
 extern struct codepage_desc *codepages;
--- mc/src/charsets.c	Mon Aug 30 12:42:52 2004
+++ mc/src/charsets.c~	Mon Aug 30 12:41:28 2004
@@ -165,12 +165,12 @@ char errbuf[255];
  */
 #define CP_ASCII 0
 
-char *
+const char *
 init_translation_table (int cpsource, int cpdisplay)
 {
     int i;
     iconv_t cd;
-    char *cpsour, *cpdisp;
+    const char *cpsour, *cpdisp;
 
     /* Fill inpit <-> display tables */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]