diff options
Diffstat (limited to 'coreutils/nproc.c')
-rw-r--r-- | coreutils/nproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/nproc.c b/coreutils/nproc.c index 7025765c5..b345255a7 100644 --- a/coreutils/nproc.c +++ b/coreutils/nproc.c | |||
@@ -14,7 +14,7 @@ | |||
14 | //kbuild:lib-$(CONFIG_NPROC) += nproc.o | 14 | //kbuild:lib-$(CONFIG_NPROC) += nproc.o |
15 | 15 | ||
16 | //usage:#define nproc_trivial_usage | 16 | //usage:#define nproc_trivial_usage |
17 | //usage: ""IF_LONG_OPTS("--all --ignore=N") | 17 | //usage: ""IF_LONG_OPTS("[--all] [--ignore=N]") |
18 | //usage:#define nproc_full_usage "\n\n" | 18 | //usage:#define nproc_full_usage "\n\n" |
19 | //usage: "Print number of available CPUs" | 19 | //usage: "Print number of available CPUs" |
20 | //usage: IF_LONG_OPTS( | 20 | //usage: IF_LONG_OPTS( |
@@ -49,7 +49,7 @@ int nproc_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
49 | if (cpuid && isdigit(cpuid[strlen(cpuid) - 1])) | 49 | if (cpuid && isdigit(cpuid[strlen(cpuid) - 1])) |
50 | count++; | 50 | count++; |
51 | } | 51 | } |
52 | closedir(cpusd); | 52 | IF_FEATURE_CLEAN_UP(closedir(cpusd);) |
53 | } | 53 | } |
54 | } else | 54 | } else |
55 | #endif | 55 | #endif |