From 194964d6679f2b678f6629cf0c3d916d21b005de Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 23 Sep 2007 21:25:24 +0000 Subject: [PATCH] Use strchr() instead of the deprecated index(). Patch from Bernhard Fischer. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4862 7894878c-1315-0410-8ee3-d5d059ff63e0 --- tools/i2cbusses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/i2cbusses.c b/tools/i2cbusses.c index bf462bb..6e96fb4 100644 --- a/tools/i2cbusses.c +++ b/tools/i2cbusses.c @@ -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");