summaryrefslogtreecommitdiffstats
path: root/schedutils
diff options
context:
space:
mode:
authorSami Kerola2011-07-17 19:51:46 +0200
committerKarel Zak2011-07-21 15:52:25 +0200
commit90b7d261b9acaaacc0266f9b9ea1ffb934c4da4e (patch)
treebbc87de1cc42aa69529b1bf89deccbd6f3be3886 /schedutils
parentfsck.minix: fix "array subscript is above array bounds" (diff)
downloadkernel-qcow2-util-linux-90b7d261b9acaaacc0266f9b9ea1ffb934c4da4e.tar.gz
kernel-qcow2-util-linux-90b7d261b9acaaacc0266f9b9ea1ffb934c4da4e.tar.xz
kernel-qcow2-util-linux-90b7d261b9acaaacc0266f9b9ea1ffb934c4da4e.zip
chrt: data type compiler warning fixed
chrt.c:158:16: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'schedutils')
-rw-r--r--schedutils/chrt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index 6c2c6f223..542b1fa42 100644
--- a/schedutils/chrt.c
+++ b/schedutils/chrt.c
@@ -156,7 +156,7 @@ static void show_rt_info(pid_t pid, int isnew)
static void show_min_max(void)
{
- int i;
+ unsigned long i;
int policies[] = { SCHED_OTHER, SCHED_FIFO, SCHED_RR,
#ifdef SCHED_BATCH
SCHED_BATCH,