[janitor] libs/wine -Wwrite-strings cleanup

Daniel Marmier d.marmier at bluewin.ch
Thu Oct 2 09:48:17 CDT 2003


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

-------------- next part --------------
Index: libs/wine/debug.c
===================================================================
RCS file: /home/wine/wine/libs/wine/debug.c,v
retrieving revision 1.1
diff -u -r1.1 debug.c
--- libs/wine/debug.c	22 Mar 2003 20:40:48 -0000	1.1
+++ libs/wine/debug.c	2 Oct 2003 14:24:04 -0000
@@ -143,12 +143,13 @@
 /* parse a set of debugging option specifications and add them to the option list */
 int wine_dbg_parse_options( const char *str )
 {
-    char *p, *opt, *next, *options;
+    char *opt, *next, *options;
     int i, errors = 0;
 
     if (!(options = strdup(str))) return -1;
     for (opt = options; opt; opt = next)
     {
+        const char *p;
         unsigned char set = 0, clear = 0;
 
         if ((next = strchr( opt, ',' ))) *next++ = 0;


More information about the wine-patches mailing list