Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-06-24 14:47:49 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2021-06-24 14:47:49 +0300
commit6481070eb949125b750aae6e0ec08368a15ac371 (patch)
tree4b387a547d997b0abab2c00af8bf6d70b211315f /coreutils/nproc.c
parentdf96a3cd08f326b193b5c0ee7829ea736ab52451 (diff)
nproc: code shrink
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/nproc.c')
-rw-r--r--coreutils/nproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/nproc.c b/coreutils/nproc.c
index 89b17e0cc..bb9bc56c5 100644
--- a/coreutils/nproc.c
+++ b/coreutils/nproc.c
@@ -48,7 +48,7 @@ int nproc_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
if (cpuid && isdigit(cpuid[strlen(cpuid) - 1]))
count++;
}
- closedir(cpusd);
+ IF_FEATURE_CLEAN_UP(closedir(cpusd);)
}
} else
#endif