diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-02-17 17:38:35 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2021-03-19 23:30:54 +0100 |
commit | a11d01568c5e7bc5570fd48fa0703d837c4bcd84 (patch) | |
tree | 3e298e81123789ed6ae288e5bd32e91ebfb3ff01 /Affinity.h | |
parent | 53bcc5cbffbdd69e0e08bd33c5e357dd5b753456 (diff) |
Use unsigned types for CPU counts and associated variables
Diffstat (limited to 'Affinity.h')
-rw-r--r-- | Affinity.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -27,16 +27,16 @@ in the source distribution for its full text. typedef struct Affinity_ { ProcessList* pl; - int size; - int used; - int* cpus; + unsigned int size; + unsigned int used; + unsigned int* cpus; } Affinity; Affinity* Affinity_new(ProcessList* pl); void Affinity_delete(Affinity* this); -void Affinity_add(Affinity* this, int id); +void Affinity_add(Affinity* this, unsigned int id); #if defined(HAVE_LIBHWLOC) || defined(HAVE_LINUX_AFFINITY) |