summaryrefslogtreecommitdiffstats
path: root/solaris
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-05-19 19:02:06 +0200
committercgzones <cgzones@googlemail.com>2021-05-20 16:43:40 +0200
commit906dcf5cb3d42618fb4bd6aa14c81a009f7cd596 (patch)
treee000a015be23f9498a2c46849827caab5f2638ac /solaris
parent8f34225a496a75b634b82484533a13fdcc3b12f3 (diff)
Solaris: silence signed comparison
Diffstat (limited to 'solaris')
-rw-r--r--solaris/SolarisProcessList.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/solaris/SolarisProcessList.c b/solaris/SolarisProcessList.c
index 80965f35..7c94f49f 100644
--- a/solaris/SolarisProcessList.c
+++ b/solaris/SolarisProcessList.c
@@ -59,7 +59,7 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, ui
pageSizeKB = pageSize / 1024;
pl->cpuCount = sysconf(_SC_NPROCESSORS_ONLN);
- if (pl->cpuCount == -1)
+ if (pl->cpuCount == (unsigned int)-1)
CRT_fatalError("Cannot get CPU count by sysconf(_SC_NPROCESSORS_ONLN)");
else if (pl->cpuCount == 1)
spl->cpus = xRealloc(spl->cpus, sizeof(CPUData));

© 2014-2024 Faster IT GmbH | imprint | privacy policy