[PATCH 45/65] fix signed / unsigned type warning

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Wed, 29 Oct 2014 22:01:55 +0000

---
 ii.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ii.c b/ii.c
index 00eac4b..170ec50 100644
--- a/ii.c
+++ b/ii.c
_AT_@ -122,15 +122,15 @@ create_filepath(char *filepath, size_t len, const char *path,
 
 	if(channel[0]) {
 		r = snprintf(filepath, len, "%s/%s", path, channel);
-		if(r < 0 || r >= len)
+		if(r < 0 || (size_t)r >= len)
 			eprintf(e);
 		create_dirtree(filepath);
 		r = snprintf(filepath, len, "%s/%s/%s", path, channel, suffix);
-		if(r < 0 || r >= len)
+		if(r < 0 || (size_t)r >= len)
 			eprintf(e);
 	} else {
 		r = snprintf(filepath, len, "%s/%s", path, suffix);
-		if(r < 0 || r >= len)
+		if(r < 0 || (size_t)r >= len)
 			eprintf(e);
 	}
 }
-- 
2.4.10
--Multipart=_Mon__9_May_2016_17_21_10_+0200_I.6cpFVydhq75aaE
Content-Type: text/x-diff;
 name="0046-config.mk-improve-remove-solaris-noone-uses-it.patch"
Content-Disposition: attachment;
 filename="0046-config.mk-improve-remove-solaris-noone-uses-it.patch"
Content-Transfer-Encoding: 7bit
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Mon May 09 2016 - 17:24:22 CEST