From: Sami Kerola Date: Tue, 7 Feb 2012 21:51:22 +0000 (+0100) Subject: taskset: use appropriate variable type [cppcheck] X-Git-Tag: v2.21~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f5a24842069a22404a0a42833abc27b54b2c6cd;p=thirdparty%2Futil-linux.git taskset: use appropriate variable type [cppcheck] [schedutils/taskset.c:182]: (style) Checking if unsigned variable 'ncpus' is less than zero. Signed-off-by: Sami Kerola --- diff --git a/schedutils/taskset.c b/schedutils/taskset.c index 085675d7a8..fd8e29a911 100644 --- a/schedutils/taskset.c +++ b/schedutils/taskset.c @@ -130,7 +130,7 @@ int main(int argc, char **argv) cpu_set_t *new_set; pid_t pid = 0; int c, all_tasks = 0; - unsigned int ncpus; + int ncpus; size_t new_setsize, nbits; struct taskset ts;