summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-24 10:10:54 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-24 10:10:54 -0700
commit3a0e14080f81fbfb7b2df2fc8a775b2dc8506cb3 (patch)
treed881694bf1d28d3add026051bdfbe36eb55b3de6
parentcab5c584f1dcc125a7fd2a014785dc8adcd3c683 (diff)
Fix const char warnings in calls to isabbreviation()
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 <alan.coopersmith@oracle.com>
-rw-r--r--xgamma.c2
1 files changed, 1 insertions, 1 deletions
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;