From c1d7caca61ed2dd5b9571ecaf38b3201b54e9982 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Fri, 11 Nov 2005 16:18:46 +0000 Subject: [PATCH] fixed warnings when compiled with -Wwrite-strings svn path=/trunk/; revision=19132 --- reactos/apps/utils/net/whois/whois.c | 2 +- reactos/apps/utils/ps/ps.c | 8 ++++---- reactos/apps/utils/rosperf/alphablend.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/reactos/apps/utils/net/whois/whois.c b/reactos/apps/utils/net/whois/whois.c index 9ef6c8df652..fd81fb3f495 100644 --- a/reactos/apps/utils/net/whois/whois.c +++ b/reactos/apps/utils/net/whois/whois.c @@ -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; diff --git a/reactos/apps/utils/ps/ps.c b/reactos/apps/utils/ps/ps.c index e2f8ddf0185..05b49d5adc0 100644 --- a/reactos/apps/utils/ps/ps.c +++ b/reactos/apps/utils/ps/ps.c @@ -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 "}, diff --git a/reactos/apps/utils/rosperf/alphablend.c b/reactos/apps/utils/rosperf/alphablend.c index 75e4084f2ab..d517f369491 100644 --- a/reactos/apps/utils/rosperf/alphablend.c +++ b/reactos/apps/utils/rosperf/alphablend.c @@ -60,7 +60,7 @@ AlphaBlendCleanup(void *Context, PPERF_INFO PerfInfo) ULONG DbgPrint( - IN PCH Format, + IN PCSTR Format, IN ...); void -- 2.17.1