1
0
mirror of git://git.suckless.org/sbase synced 2024-12-24 07:53:08 +00:00

Explicitly cast len to unsigned long for %lu

This commit is contained in:
stateless 2013-06-28 23:30:59 +01:00 committed by David Galos
parent 60731fb6e8
commit c1c367c1bd

View File

@ -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');