sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit c1c367c1bd4e7a178afa4ebe73e46c17b5cc86cb
parent 60731fb6e8108919d7636716f615fd3b8670d7ae
Author: stateless <stateless@archlinux.us>
Date:   Fri, 28 Jun 2013 23:30:59 +0100

Explicitly cast len to unsigned long for %lu

Diffstat:
Mcksum.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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');