diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-24 10:10:54 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-24 10:10:54 -0700 |
commit | 3a0e14080f81fbfb7b2df2fc8a775b2dc8506cb3 (patch) | |
tree | d881694bf1d28d3add026051bdfbe36eb55b3de6 | |
parent | cab5c584f1dcc125a7fd2a014785dc8adcd3c683 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |