From 5c98205e025adaf2aa4d99b71cb4581963076a04 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 16 Jan 2011 12:57:14 -0800 Subject: 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 Signed-off-by: Peter Hutterer --- tools/synclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3