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>
This commit is contained in:
Alan Coopersmith
2011-01-16 12:57:14 -08:00
committed by Peter Hutterer
parent ca0f87eb2a
commit 5c98205e02

View File

@@ -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) {