From 09ab37f816d2fe9482574c825132d9b516b8e0bf Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 18 Jul 2013 22:58:10 -0700 Subject: Declare processTimeout() as taking a const string arg Fixes gcc const warnings on every call to it Signed-off-by: Alan Coopersmith --- xinit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xinit.c') diff --git a/xinit.c b/xinit.c index 873b4fa..eec4a2b 100644 --- a/xinit.c +++ b/xinit.c @@ -107,7 +107,7 @@ volatile int gotSignal = 0; static void Execute(char **vec); static Bool waitforserver(void); -static Bool processTimeout(int timeout, char *string); +static Bool processTimeout(int timeout, const char *string); static int startServer(char *server[]); static int startClient(char *client[]); static int ignorexio(Display *dpy); @@ -364,10 +364,10 @@ waitforserver(void) * return TRUE if we timeout waiting for pid to exit, FALSE otherwise. */ static Bool -processTimeout(int timeout, char *string) +processTimeout(int timeout, const char *string) { int i = 0, pidfound = -1; - static char *laststring; + static const char *laststring; for (;;) { if ((pidfound = waitpid(serverpid, &status, WNOHANG)) == serverpid) -- cgit v1.2.3