Commit 60b4208d authored by Yann E. MORIN's avatar Yann E. MORIN Committed by Thomas Petazzoni

sysctl.c: use strchr() instead of index()

index() is a legacy function, which is no longer implemented by all C
libraries (example: uClibc). Instead, use the POSIX defined strchr()
Signed-off-by: Yann E. MORIN's avatarYann E. MORIN <>
Signed-off-by: Thomas Petazzoni's avatarThomas Petazzoni <>
parent b4fdb27a
......@@ -816,7 +816,7 @@ int main(int argc, char *argv[])
for ( ; *argv; argv++) {
if (WriteMode || index(*argv, '='))
if (WriteMode || strchr(*argv, '='))
ReturnCode += WriteSetting(*argv);
ReturnCode += ReadSetting(*argv);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment