From 3a0e14080f81fbfb7b2df2fc8a775b2dc8506cb3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 24 May 2014 10:10:54 -0700 Subject: Fix const char warnings in calls to isabbreviation() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc warned on every call: xgamma.c: In function ‘main’: xgamma.c:107:6: warning: passing argument 1 of ‘isabbreviation’ discards ‘const’ qualifier from pointer target type [enabled by default] if (isabbreviation ("-display", arg, 1)) { ^ xgamma.c:70:1: note: expected ‘char *’ but argument is of type ‘const char *’ isabbreviation(char *arg, char *s, size_t minslen) ^ Signed-off-by: Alan Coopersmith --- xgamma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xgamma.c b/xgamma.c index 9988575..54eeec7 100644 --- a/xgamma.c +++ b/xgamma.c @@ -67,7 +67,7 @@ Syntax(void) */ static Bool -isabbreviation(char *arg, char *s, size_t minslen) +isabbreviation(const char *arg, const char *s, size_t minslen) { size_t arglen; size_t slen; -- cgit v1.2.3