summaryrefslogtreecommitdiffstats
path: root/schedutils
diff options
context:
space:
mode:
authorSami Kerola2012-02-07 22:51:22 +0100
committerKarel Zak2012-02-08 14:13:34 +0100
commit2f5a24842069a22404a0a42833abc27b54b2c6cd (patch)
treeb1999b6452d02a9cffa3a3b8844eae80a81553a1 /schedutils
parentlibblkid: verify arroy bound before reference [cppcheck] (diff)
downloadkernel-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.c2
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;