[PATCH] Explicitly cast len to unsigned long for %lu

From: stateless <stateless_AT_archlinux.us>
Date: Fri, 28 Jun 2013 23:30:59 +0100

---
 cksum.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cksum.c b/cksum.c
index efe241b..d08ca31 100644
--- a/cksum.c
+++ b/cksum.c
_AT_@ -100,7 +100,7 @@ cksum(int fd, const char *s)
 	for(i = len; i > 0; i >>= 8)
 		ck = (ck << 8) ^ crctab[(ck >> 24) ^ (i & 0xFF)];
 
-	printf("%u %lu", ~ck, len);
+	printf("%u %lu", ~ck, (unsigned long)len);
 	if(s != NULL)
 		printf(" %s", s);
 	putchar('\n');
-- 
1.7.12.1
--5vNYLRcllDrimb99--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Sat Jun 29 2013 - 03:36:02 CEST