]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chrt: data type compiler warning fixed
authorSami Kerola <kerolasa@iki.fi>
Sun, 17 Jul 2011 17:51:46 +0000 (19:51 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Jul 2011 13:52:25 +0000 (15:52 +0200)
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>
schedutils/chrt.c

index 6c2c6f2232d30fe864e78dcf6847fd79e747a6f4..542b1fa42924922d721f7df8f51ce5ad4c1f3a88 100644 (file)
@@ -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,