From af2cc5bc2e13a61e6ab3d495d3edb34d94a42964 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 30 Sep 2011 20:19:44 -0700 Subject: Add const attributes to clear gcc -Wwrite-strings warnings Signed-off-by: Alan Coopersmith Reviewed-by: Jeremy Huddleston --- scope.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scope.c') diff --git a/scope.c b/scope.c index f2716d2..2fec497 100644 --- a/scope.c +++ b/scope.c @@ -131,11 +131,11 @@ static CMDResult CMDQuit (int argc, char **argv); static CMDResult CMDHelp (int argc, char **argv); typedef struct _CMDFunc { - char *name; - char *alias; + const char *name; + const char *alias; CMDResult (*func)(int argc, char **argv); - char *usage; - char *help; + const char *usage; + const char *help; } CMDFuncRec; typedef const CMDFuncRec *CMDFuncPtr; @@ -1050,7 +1050,7 @@ ServerHalf ( return(FDinfo[fd].pair); } -char * +const char * ClientName ( FD fd) { -- cgit v1.2.1