replace obsolete index() by strchr() (Guillaume LECERF)

This commit is contained in:
marschap
2006-12-31 16:17:36 +00:00
parent fa0f122b10
commit ed56ca9088
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -383,7 +383,7 @@ int machine_get_procs(LinkedList *procs)
char buf[128];
/* ignore everything in proc except process ids */
if (!index("1234567890", procdir->d_name[0]))
if (!strchr("1234567890", procdir->d_name[0]))
continue;
sprintf(buf, "/proc/%s/status", procdir->d_name);
+1 -1
View File
@@ -300,7 +300,7 @@ int machine_get_procs(LinkedList *procs)
{
psinfo_t psinfo;
if (!index("1234567890", procdir->d_name[0]))
if (!strchr("1234567890", procdir->d_name[0]))
continue;
sprintf(buf, "/proc/%s/psinfo", procdir->d_name);