diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-01-16 12:57:14 -0800 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-01-17 07:25:43 +1000 |
commit | 5c98205e025adaf2aa4d99b71cb4581963076a04 (patch) | |
tree | f73ecdb0504c45e4459943c5e2606ad8e302bafd /tools | |
parent | ca0f87eb2a7491048d49e6449b688c4fea245310 (diff) |
synclient.c: Replace old index() function with C89-standard strchr()
Fixes Solaris compiler warnings of:
"synclient.c", line 152: warning: implicit function declaration: index
"synclient.c", line 152: warning: improper pointer/integer combination: op "="
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/synclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/synclient.c b/tools/synclient.c index e7be499..9776d23 100644 --- a/tools/synclient.c +++ b/tools/synclient.c @@ -149,7 +149,7 @@ static struct Parameter params[] = { static double parse_cmd(char* cmd, struct Parameter** par) { - char *eqp = index(cmd, '='); + char *eqp = strchr(cmd, '='); *par = NULL; if (eqp) { |