diff options
Diffstat (limited to 'libc/bionic/sysconf.c')
-rw-r--r-- | libc/bionic/sysconf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/bionic/sysconf.c b/libc/bionic/sysconf.c index 7caa4e93c..d21a703ec 100644 --- a/libc/bionic/sysconf.c +++ b/libc/bionic/sysconf.c @@ -85,9 +85,8 @@ static int __get_nproc_conf(void) { } int result = 0; - struct dirent de; struct dirent* e; - while (!readdir_r(d, &de, &e) && e != NULL) { + while ((e = readdir(d)) != NULL) { if (e->d_type == DT_DIR && __matches_cpuN(e->d_name)) { ++result; } |