From 32414dace7e6b81fed93de802c8c3d68ef846c9a Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sun, 4 Jul 2021 19:32:47 +0200 Subject: [PATCH 1/2] Remove unused define on Solaris --- solaris/SolarisProcessList.c | 2 -- solaris/SolarisProcessList.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/solaris/SolarisProcessList.c b/solaris/SolarisProcessList.c index edf6a426..1e9c2d88 100644 --- a/solaris/SolarisProcessList.c +++ b/solaris/SolarisProcessList.c @@ -26,8 +26,6 @@ in the source distribution for its full text. #include "solaris/SolarisProcess.h" -#define MAXCMDLINE 255 - static int pageSize; static int pageSizeKB; diff --git a/solaris/SolarisProcessList.h b/solaris/SolarisProcessList.h index bad2c73e..684e782f 100644 --- a/solaris/SolarisProcessList.h +++ b/solaris/SolarisProcessList.h @@ -8,8 +8,6 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ -#define MAXCMDLINE 255 - #define GZONE "global " #define UZONE "unknown " From 364e4e692feebc268b0dbadf82cb4745e664e3b2 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sun, 4 Jul 2021 19:34:03 +0200 Subject: [PATCH 2/2] Reduce visibility of GZONE and UZONE Fixes #624 --- solaris/SolarisProcessList.c | 3 +++ solaris/SolarisProcessList.h | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/solaris/SolarisProcessList.c b/solaris/SolarisProcessList.c index 1e9c2d88..716436e7 100644 --- a/solaris/SolarisProcessList.c +++ b/solaris/SolarisProcessList.c @@ -26,6 +26,9 @@ in the source distribution for its full text. #include "solaris/SolarisProcess.h" +#define GZONE "global " +#define UZONE "unknown " + static int pageSize; static int pageSizeKB; diff --git a/solaris/SolarisProcessList.h b/solaris/SolarisProcessList.h index 684e782f..c262ba4c 100644 --- a/solaris/SolarisProcessList.h +++ b/solaris/SolarisProcessList.h @@ -8,10 +8,6 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ -#define GZONE "global " -#define UZONE "unknown " - - #include "config.h" // IWYU pragma: keep #include