[git commit] nproc: code shrink
Denys Vlasenko
vda.linux at googlemail.com
Thu Jun 24 11:47:49 UTC 2021
commit: https://git.busybox.net/busybox/commit/?id=6481070eb949125b750aae6e0ec08368a15ac371
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
coreutils/nproc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the busybox-cvs
mailing list