From b15e63afd29ad7745ac60bf730854e99650ddf49 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 8 Oct 2012 19:39:26 +0100 Subject: [PATCH] output: fix sign-compare warning [clang] output.c:819:17: warning: comparison of integers of different signs: 'int' and ' unsigned int' [-Wsign-compare] for (i = 0; i < num_ranges; i++) { ~ ^ ~~~~~~~~~~ output.c:832:17: warning: comparison of integers of different signs: 'int' and ' unsigned int' [-Wsign-compare] for (i = 0; i < num_shared_networks; i++) { ~ ^ ~~~~~~~~~~~~~~~~~~~ Signed-off-by: Sami Kerola --- src/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output.c b/src/output.c index 79189cf..6e6b084 100644 --- a/src/output.c +++ b/src/output.c @@ -797,7 +797,7 @@ int output_alarming(void) FILE *outfile; struct range_t *range_p; struct shared_network_t *shared_p; - int i; + unsigned int i; float perc; int rw = 0, rc = 0, ro = 0, sw = 0, sc = 0, so = 0; int ret_val, ret;