Fix warning
>From 68b3e95270dcf54d55680f0184e6bd42ae2dfa4d Mon Sep 17 00:00:00 2001 From: stateless <statel...@archlinux.us> Date: Fri, 28 Jun 2013 23:30:59 +0100 Subject: [PATCH] Explicitly cast len to unsigned long for %lu
--- 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 @@ -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