diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-24 13:47:49 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-24 13:47:49 +0200 |
commit | 6481070eb949125b750aae6e0ec08368a15ac371 (patch) | |
tree | 4b387a547d997b0abab2c00af8bf6d70b211315f | |
parent | df96a3cd08f326b193b5c0ee7829ea736ab52451 (diff) | |
download | busybox-w32-6481070eb949125b750aae6e0ec08368a15ac371.tar.gz busybox-w32-6481070eb949125b750aae6e0ec08368a15ac371.tar.bz2 busybox-w32-6481070eb949125b750aae6e0ec08368a15ac371.zip |
nproc: code shrink
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | coreutils/nproc.c | 2 |
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) | |||
48 | if (cpuid && isdigit(cpuid[strlen(cpuid) - 1])) | 48 | if (cpuid && isdigit(cpuid[strlen(cpuid) - 1])) |
49 | count++; | 49 | count++; |
50 | } | 50 | } |
51 | closedir(cpusd); | 51 | IF_FEATURE_CLEAN_UP(closedir(cpusd);) |
52 | } | 52 | } |
53 | } else | 53 | } else |
54 | #endif | 54 | #endif |