[janitor] tools/winebuild -Wwrite-strings cleanup

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

 



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

Index: tools/winebuild/build.h
===================================================================
RCS file: /home/wine/wine/tools/winebuild/build.h,v
retrieving revision 1.46
diff -u -r1.46 build.h
--- tools/winebuild/build.h	19 Sep 2003 00:19:16 -0000	1.46
+++ tools/winebuild/build.h	2 Oct 2003 16:46:35 -0000
@@ -191,7 +191,7 @@
 extern char *owner_name;
 extern char *dll_name;
 extern char *dll_file_name;
-extern char *init_func;
+extern const char *init_func;
 extern char *input_file_name;
 extern const char *output_file_name;
 extern char **debug_channels;
Index: tools/winebuild/main.c
===================================================================
RCS file: /home/wine/wine/tools/winebuild/main.c,v
retrieving revision 1.48
diff -u -r1.48 main.c
--- tools/winebuild/main.c	23 Aug 2003 00:45:21 -0000	1.48
+++ tools/winebuild/main.c	2 Oct 2003 16:46:37 -0000
@@ -66,7 +66,7 @@
 char *owner_name = NULL;
 char *dll_name = NULL;
 char *dll_file_name = NULL;
-char *init_func = NULL;
+const char *init_func = NULL;
 char **debug_channels = NULL;
 char **lib_path = NULL;
 
Index: tools/winebuild/relay.c
===================================================================
RCS file: /home/wine/wine/tools/winebuild/relay.c,v
retrieving revision 1.29
diff -u -r1.29 relay.c
--- tools/winebuild/relay.c	28 Aug 2003 03:44:41 -0000	1.29
+++ tools/winebuild/relay.c	2 Oct 2003 16:46:44 -0000
@@ -120,7 +120,7 @@
  */
 static void BuildCallFrom16Core( FILE *outfile, int reg_func, int thunk, int short_ret )
 {
-    char *name = thunk? "thunk" : reg_func? "regs" : short_ret? "word" : "long";
+    const char *name = thunk? "thunk" : reg_func? "regs" : short_ret? "word" : "long";
 
     /* Function header */
     if (thunk) function_header( outfile, "__wine_call_from_16_thunk" );
@@ -753,7 +753,7 @@
  */
 static void BuildCallTo32CBClient( FILE *outfile, BOOL isEx )
 {
-    char *name = isEx? "CBClientEx" : "CBClient";
+    const char *name = isEx? "CBClientEx" : "CBClient";
     int size = isEx? 24 : 12;
 
     /* Function header */
@@ -889,7 +889,7 @@
 
 static void BuildCallTo32CBClientRet( FILE *outfile, BOOL isEx )
 {
-    char *name = isEx? "CBClientEx" : "CBClient";
+    const char *name = isEx? "CBClientEx" : "CBClient";
 
     /* '16-bit' return stub */
 
Index: tools/winebuild/spec16.c
===================================================================
RCS file: /home/wine/wine/tools/winebuild/spec16.c,v
retrieving revision 1.44
diff -u -r1.44 spec16.c
--- tools/winebuild/spec16.c	28 Aug 2003 19:57:35 -0000	1.44
+++ tools/winebuild/spec16.c	2 Oct 2003 16:46:48 -0000
@@ -346,7 +346,7 @@
     int usecdecl = 0;
     int varargs = 0;
     const char *args = profile + 7;
-    char *ret_type;
+    const char *ret_type;
 
     /* Parse function type */
 

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux