replace obsolete index() by strchr() (Guillaume LECERF)
This commit is contained in:
@@ -25,6 +25,7 @@ v.0.5dev (ongoing development)
|
|||||||
* add support for Iface and ProcSize screens for OS X / Darwin (Eric Pooch)
|
* add support for Iface and ProcSize screens for OS X / Darwin (Eric Pooch)
|
||||||
* update & fix serialVFD driver (Stefan Herdler)
|
* update & fix serialVFD driver (Stefan Herdler)
|
||||||
+ Hitachi SP14Q002 support & another connection type to sed1330 (Benjamin Wiedmann)
|
+ Hitachi SP14Q002 support & another connection type to sed1330 (Benjamin Wiedmann)
|
||||||
|
* replace obsolete index() by strchr() (Guillaume LECERF)
|
||||||
|
|
||||||
v.0.5.1
|
v.0.5.1
|
||||||
+ config file support in lcdproc client (Andrew Foss)
|
+ config file support in lcdproc client (Andrew Foss)
|
||||||
|
|||||||
@@ -383,7 +383,7 @@ int machine_get_procs(LinkedList *procs)
|
|||||||
char buf[128];
|
char buf[128];
|
||||||
|
|
||||||
/* ignore everything in proc except process ids */
|
/* ignore everything in proc except process ids */
|
||||||
if (!index("1234567890", procdir->d_name[0]))
|
if (!strchr("1234567890", procdir->d_name[0]))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
sprintf(buf, "/proc/%s/status", procdir->d_name);
|
sprintf(buf, "/proc/%s/status", procdir->d_name);
|
||||||
|
|||||||
@@ -300,7 +300,7 @@ int machine_get_procs(LinkedList *procs)
|
|||||||
{
|
{
|
||||||
psinfo_t psinfo;
|
psinfo_t psinfo;
|
||||||
|
|
||||||
if (!index("1234567890", procdir->d_name[0]))
|
if (!strchr("1234567890", procdir->d_name[0]))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
sprintf(buf, "/proc/%s/psinfo", procdir->d_name);
|
sprintf(buf, "/proc/%s/psinfo", procdir->d_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user