fixed warnings when compiled with -Wwrite-strings Modified: trunk/reactos/apps/utils/net/whois/whois.c Modified: trunk/reactos/apps/utils/ps/ps.c Modified: trunk/reactos/apps/utils/rosperf/alphablend.c _____
Modified: trunk/reactos/apps/utils/net/whois/whois.c --- trunk/reactos/apps/utils/net/whois/whois.c 2005-11-11 16:11:13 UTC (rev 19131) +++ trunk/reactos/apps/utils/net/whois/whois.c 2005-11-11 16:18:46 UTC (rev 19132) @@ -62,7 +62,7 @@
struct hostent *hp; struct servent *sp; int s; - char *host; + const char *host; WORD wVersionRequested; WSADATA wsaData; int err; _____
Modified: trunk/reactos/apps/utils/ps/ps.c --- trunk/reactos/apps/utils/ps/ps.c 2005-11-11 16:11:13 UTC (rev 19131) +++ trunk/reactos/apps/utils/ps/ps.c 2005-11-11 16:18:46 UTC (rev 19132) @@ -90,14 +90,14 @@
// 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 "}, _____
Modified: trunk/reactos/apps/utils/rosperf/alphablend.c --- trunk/reactos/apps/utils/rosperf/alphablend.c 2005-11-11 16:11:13 UTC (rev 19131) +++ trunk/reactos/apps/utils/rosperf/alphablend.c 2005-11-11 16:18:46 UTC (rev 19132) @@ -60,7 +60,7 @@
ULONG DbgPrint( - IN PCH Format, + IN PCSTR Format, IN ...);
void