mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-04-14 11:54:16 +00:00
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:
committed by
Peter Hutterer
parent
ca0f87eb2a
commit
5c98205e02
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user