diff options
author | Ron Yorston <rmy@pobox.com> | 2024-11-07 07:33:20 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-11-07 07:33:20 +0000 |
commit | bd258eabf2931024c5c24f9c11ce192cdaf23bd5 (patch) | |
tree | c5461e3f3d265fba15ecf627a648a828b2ad93fb | |
parent | 8196c9b173b3e22a5fc84d68475e892d2ba05615 (diff) | |
download | busybox-w32-bd258eabf2931024c5c24f9c11ce192cdaf23bd5.tar.gz busybox-w32-bd258eabf2931024c5c24f9c11ce192cdaf23bd5.tar.bz2 busybox-w32-bd258eabf2931024c5c24f9c11ce192cdaf23bd5.zip |
nproc: remove old code
Upstream commit 5a68a246e (nproc: prepare for arbitrarily large
CPU masks) dynamically allocated the 'masks' array. When this
was merged into busybox-w32 the old code was inadvertantly left
in place.
Remove it now. This has no effect on Windows builds.
-rw-r--r-- | coreutils/nproc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/nproc.c b/coreutils/nproc.c index 5faa57a65..44408b5f5 100644 --- a/coreutils/nproc.c +++ b/coreutils/nproc.c | |||
@@ -28,9 +28,7 @@ | |||
28 | int nproc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 28 | int nproc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
29 | int nproc_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | 29 | int nproc_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
30 | { | 30 | { |
31 | #if !ENABLE_PLATFORM_MINGW32 | 31 | #if ENABLE_PLATFORM_MINGW32 |
32 | unsigned long mask[1024]; | ||
33 | #else | ||
34 | DWORD_PTR affinity, process_affinity, system_affinity; | 32 | DWORD_PTR affinity, process_affinity, system_affinity; |
35 | #endif | 33 | #endif |
36 | int count = 0; | 34 | int count = 0; |