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
View File
@@ -25,6 +25,7 @@ v.0.5dev (ongoing development)
* add support for Iface and ProcSize screens for OS X / Darwin (Eric Pooch)
* update & fix serialVFD driver (Stefan Herdler)
+ Hitachi SP14Q002 support & another connection type to sed1330 (Benjamin Wiedmann)
* replace obsolete index() by strchr() (Guillaume LECERF)
v.0.5.1
+ config file support in lcdproc client (Andrew Foss)
+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);