From bd258eabf2931024c5c24f9c11ce192cdaf23bd5 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 7 Nov 2024 07:33:20 +0000 Subject: 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. --- coreutils/nproc.c | 4 +--- 1 file changed, 1 insertion(+), 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 @@ int nproc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int nproc_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) { -#if !ENABLE_PLATFORM_MINGW32 - unsigned long mask[1024]; -#else +#if ENABLE_PLATFORM_MINGW32 DWORD_PTR affinity, process_affinity, system_affinity; #endif int count = 0; -- cgit v1.2.3-55-g6feb