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

This commit is contained in:
marschap committed 2006-12-31 16:17:36 +00:00
1 parent fa0f122b10
commit ed56ca9088
3 files changed
+3 -2

No files matched your search

+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);