[janitor] tools/fnt2bdf.c -Wwrite-strings cleanup

Daniel Marmier d.marmier at bluewin.ch
Thu Oct 2 11:48:32 CDT 2003


Fixed warning with gcc option "-Wwrite-strings".

-------------- next part --------------
Index: tools/fnt2bdf.c
===================================================================
RCS file: /home/wine/wine/tools/fnt2bdf.c,v
retrieving revision 1.15
diff -u -r1.15 fnt2bdf.c
--- tools/fnt2bdf.c	2 Jan 2003 17:59:47 -0000	1.15
+++ tools/fnt2bdf.c	2 Oct 2003 16:36:03 -0000
@@ -58,13 +58,13 @@
 char*   g_lpstrInputFile = NULL;
 int     g_outputPoints = 0;
 
-static char*	errorDLLRead = "Unable to read Windows DLL.\n";
-static char*    errorFNTRead = "Unable to read .FNT file.\n";
-static char*    errorOpenFile = "Unable to open file.\n";
-static char*    errorMemory = "Memory allocation error.\n";
-static char*    errorFile = "Corrupt or invalid file.\n";
-static char*    errorFontData = "Unable to parse font data: Error ";
-static char*    errorEmpty = "No fonts found.\n";
+static const char*  errorDLLRead = "Unable to read Windows DLL.\n";
+static const char*  errorFNTRead = "Unable to read .FNT file.\n";
+static const char*  errorOpenFile = "Unable to open file.\n";
+static const char*  errorMemory = "Memory allocation error.\n";
+static const char*  errorFile = "Corrupt or invalid file.\n";
+static const char*  errorFontData = "Unable to parse font data: Error ";
+static const char*  errorEmpty = "No fonts found.\n";
 
 /* info */
 


More information about the wine-patches mailing list