[janitor] dlls/ntdll/test -Wwrite-strings cleanup

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

 



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

--- dlls/ntdll/tests/error.c.~1.5.~	2003-09-07 23:33:14.000000000 +0200
+++ dlls/ntdll/tests/error.c	2003-10-03 13:28:49.000000000 +0200
@@ -66,7 +66,7 @@
     return 1;
 }
 
-static void cmp_call(NTSTATUS win_nt, ULONG win32, char* message)
+static void cmp_call(NTSTATUS win_nt, ULONG win32, const char* message)
 {
     ULONG err;
 
@@ -76,7 +76,7 @@
             message, win_nt, err, win32);
 }
 
-static void cmp_call2(NTSTATUS win_nt, ULONG win32, char* message)
+static void cmp_call2(NTSTATUS win_nt, ULONG win32, const char* message)
 {
     ULONG err;
 
@@ -87,7 +87,7 @@
        message, win_nt, err, win32);
 }
 
-static void cmp_call3(NTSTATUS win_nt, ULONG win32_1, ULONG win32_2, char* message)
+static void cmp_call3(NTSTATUS win_nt, ULONG win32_1, ULONG win32_2, const char* message)
 {
     ULONG err;
 
@@ -97,7 +97,7 @@
             message, win_nt, err, win32_1, win32_2);
 }
 
-static void cmp_call4(NTSTATUS win_nt, ULONG win32_1, ULONG win32_2, char* message)
+static void cmp_call4(NTSTATUS win_nt, ULONG win32_1, ULONG win32_2, const char* message)
 {
     ULONG err;
 
--- dlls/ntdll/tests/large_int.c.~1.3.~	2003-09-07 23:33:14.000000000 +0200
+++ dlls/ntdll/tests/large_int.c	2003-10-03 13:29:04.000000000 +0200
@@ -133,7 +133,7 @@
     ULONGLONG value;
     USHORT Length;
     USHORT MaximumLength;
-    char *Buffer;
+    const char *Buffer;
     NTSTATUS result;
 } largeint2str_t;
 
--- dlls/ntdll/tests/rtlstr.c.~1.11.~	2003-09-26 22:22:47.000000000 +0200
+++ dlls/ntdll/tests/rtlstr.c	2003-10-03 13:38:48.000000000 +0200
@@ -87,7 +87,7 @@
 /*static DWORD (WINAPI *pRtlIsTextUnicode)(LPVOID, DWORD, DWORD *);*/
 
 
-static WCHAR* AtoW( char* p )
+static WCHAR* AtoW( const char* p )
 {
     WCHAR* buffer;
     DWORD len = MultiByteToWideChar( CP_ACP, 0, p, -1, NULL, 0 );
@@ -296,15 +296,15 @@
     int source_Length;
     int source_MaximumLength;
     int source_buf_size;
-    char *source_buf;
+    const char *source_buf;
     int dest_Length;
     int dest_MaximumLength;
     int dest_buf_size;
-    char *dest_buf;
+    const char *dest_buf;
     int res_Length;
     int res_MaximumLength;
     int res_buf_size;
-    char *res_buf;
+    const char *res_buf;
     NTSTATUS result;
 } dupl_ustr_t;
 
@@ -714,16 +714,16 @@
     int ansi_Length;
     int ansi_MaximumLength;
     int ansi_buf_size;
-    char *ansi_buf;
+    const char *ansi_buf;
     int uni_Length;
     int uni_MaximumLength;
     int uni_buf_size;
-    char *uni_buf;
+    const char *uni_buf;
     BOOLEAN doalloc;
     int res_Length;
     int res_MaximumLength;
     int res_buf_size;
-    char *res_buf;
+    const char *res_buf;
     NTSTATUS result;
 } ustr2astr_t;
 
@@ -797,12 +797,12 @@
     int dest_Length;
     int dest_MaximumLength;
     int dest_buf_size;
-    char *dest_buf;
-    char *src;
+    const char *dest_buf;
+    const char *src;
     int res_Length;
     int res_MaximumLength;
     int res_buf_size;
-    char *res_buf;
+    const char *res_buf;
     NTSTATUS result;
 } app_asc2str_t;
 
@@ -864,15 +864,15 @@
     int dest_Length;
     int dest_MaximumLength;
     int dest_buf_size;
-    char *dest_buf;
+    const char *dest_buf;
     int src_Length;
     int src_MaximumLength;
     int src_buf_size;
-    char *src_buf;
+    const char *src_buf;
     int res_Length;
     int res_MaximumLength;
     int res_buf_size;
-    char *res_buf;
+    const char *res_buf;
     NTSTATUS result;
 } app_str2str_t;
 
@@ -945,12 +945,12 @@
     int dest_Length;
     int dest_MaximumLength;
     int dest_buf_size;
-    char *dest_buf;
-    char *src;
+    const char *dest_buf;
+    const char *src;
     int res_Length;
     int res_MaximumLength;
     int res_buf_size;
-    char *res_buf;
+    const char *res_buf;
     NTSTATUS result;
 } app_uni2str_t;
 
@@ -1017,15 +1017,15 @@
     int dest_Length;
     int dest_MaximumLength;
     int dest_buf_size;
-    char *dest_buf;
+    const char *dest_buf;
     int src_Length;
     int src_MaximumLength;
     int src_buf_size;
-    char *src_buf;
+    const char *src_buf;
     int res_Length;
     int res_MaximumLength;
     int res_buf_size;
-    char *res_buf;
+    const char *res_buf;
     NTSTATUS result;
 } app_ustr2str_t;
 
@@ -1100,8 +1100,8 @@
 
 typedef struct {
     int flags;
-    char *main_str;
-    char *search_chars;
+    const char *main_str;
+    const char *search_chars;
     USHORT pos;
     NTSTATUS result;
 } find_ch_in_ustr_t;
@@ -1436,7 +1436,7 @@
     ULONG value;
     USHORT Length;
     USHORT MaximumLength;
-    char *Buffer;
+    const char *Buffer;
     NTSTATUS result;
 } int2str_t;
 
--- dlls/ntdll/tests/string.c.~1.3.~	2003-09-07 23:33:14.000000000 +0200
+++ dlls/ntdll/tests/string.c	2003-10-03 13:30:22.000000000 +0200
@@ -101,7 +101,7 @@
 typedef struct {
     int base;
     ULONG value;
-    char *Buffer;
+    const char *Buffer;
     int mask; /* ntdll/msvcrt: 0x01=itoa, 0x02=ltoa, 0x04=ultoa */
               /*               0x10=itow, 0x20=ltow, 0x40=ultow */
 } ulong2str_t;
@@ -442,7 +442,7 @@
 typedef struct {
     int base;
     ULONGLONG value;
-    char *Buffer;
+    const char *Buffer;
     int mask; /* ntdll/msvcrt: 0x01=i64toa, 0x02=ui64toa, 0x04=wrong _i64toa try next example */
               /*               0x10=i64tow, 0x20=ui64tow, 0x40=wrong _i64tow try next example */
 } ulonglong2str_t;
@@ -773,7 +773,7 @@
 
 
 typedef struct {
-    char *str;
+    const char *str;
     LONG value;
 } str2long_t;
 
@@ -918,7 +918,7 @@
 
 
 typedef struct {
-    char *str;
+    const char *str;
     LONGLONG value;
 } str2longlong_t;
 

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

  Powered by Linux