fixed warnings when compiled with -Wwrite-strings
authorThomas Bluemel <thomas@reactsoft.com>
Fri, 11 Nov 2005 16:18:46 +0000 (16:18 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Fri, 11 Nov 2005 16:18:46 +0000 (16:18 +0000)
svn path=/trunk/; revision=19132

reactos/apps/utils/net/whois/whois.c
reactos/apps/utils/ps/ps.c
reactos/apps/utils/rosperf/alphablend.c

index 9ef6c8d..fd81fb3 100644 (file)
@@ -62,7 +62,7 @@ int main(int argc, char **argv)
        struct hostent *hp;
        struct servent *sp;
        int s;
-       char *host;
+       const char *host;
        WORD wVersionRequested;
        WSADATA wsaData;
        int err;
index e2f8ddf..05b49d5 100644 (file)
@@ -90,14 +90,14 @@ typedef struct _SYSTEM_THREADS
  
 
 //                     x00000000 00000000 000:00:00  000:00:00 ()
-static char* title  = "P     PID     PPID     KTime      UTime   NAME\n";
-static char* title1 = "t              TID     KTime      UTime   State      WaitResson\n";
-static char* title2 = "w     PID     Hwnd  WndStile        TID   WndName\n";
+static char title[]  = "P     PID     PPID     KTime      UTime   NAME\n";
+static char title1[] = "t              TID     KTime      UTime   State      WaitResson\n";
+static char title2[] = "w     PID     Hwnd  WndStile        TID   WndName\n";
 
 
 struct status {
     DWORD state;
-    char  desc[10];
+    const char  desc[10];
 }   thread_stat[8 + 1] = { 
     {0,        "Init      "},
     {1,        "Ready     "},
index 75e4084..d517f36 100644 (file)
@@ -60,7 +60,7 @@ AlphaBlendCleanup(void *Context, PPERF_INFO PerfInfo)
 
 ULONG
 DbgPrint(
-  IN PCH  Format,
+  IN PCSTR  Format,
   IN ...);
 
 void