mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-21 19:51:45 +00:00
Use strchr() and strrchr() instead of the deprecated index() and rindex().
Patch from Bernhard Fischer. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4861 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
7721b59f83
commit
1092d1d731
2 files changed
+8
-8
No files matched your search
@@ -185,7 +185,7 @@ found:
|
||||
fprintf(stderr, "%s: read error\n", n);
|
||||
continue;
|
||||
}
|
||||
if((border = index(x, '\n')) != NULL)
|
||||
if((border = strchr(x, '\n')) != NULL)
|
||||
*border = 0;
|
||||
if(count++ == 0 && !procfmt)
|
||||
fprintf(stderr," Installed I2C busses:\n");
|
||||
|
||||
Reference in new issue
Block a user