diff options
author | Sami Kerola | 2012-02-07 22:51:22 +0100 |
---|---|---|
committer | Karel Zak | 2012-02-08 14:13:34 +0100 |
commit | 2f5a24842069a22404a0a42833abc27b54b2c6cd (patch) | |
tree | b1999b6452d02a9cffa3a3b8844eae80a81553a1 /schedutils | |
parent | libblkid: verify arroy bound before reference [cppcheck] (diff) | |
download | kernel-qcow2-util-linux-2f5a24842069a22404a0a42833abc27b54b2c6cd.tar.gz kernel-qcow2-util-linux-2f5a24842069a22404a0a42833abc27b54b2c6cd.tar.xz kernel-qcow2-util-linux-2f5a24842069a22404a0a42833abc27b54b2c6cd.zip |
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 <kerolasa@iki.fi>
Diffstat (limited to 'schedutils')
-rw-r--r-- | schedutils/taskset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/schedutils/taskset.c b/schedutils/taskset.c index 085675d7a..fd8e29a91 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; |