From: Randy Dunlap Date: Tue, 12 Aug 2008 22:09:08 +0000 (-0700) Subject: docsrc: fix crc32hash type X-Git-Tag: v2.6.27-rc3~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ffab10ec65f0a9b009241a9126680f72ac2fda5b;p=linux-2.6-omap-h63xx.git docsrc: fix crc32hash type Fix differing signedness warning: Documentation/pcmcia/crc32hash.c:29: warning: pointer targets in passing argument 1 of 'crc32' differ in signedness Signed-off-by: Randy Dunlap Acked-by: Dominik Brodowski Cc: Sam Ravnborg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Documentation/pcmcia/crc32hash.c b/Documentation/pcmcia/crc32hash.c index cbc36d299af..4210e5abab8 100644 --- a/Documentation/pcmcia/crc32hash.c +++ b/Documentation/pcmcia/crc32hash.c @@ -26,7 +26,7 @@ int main(int argc, char **argv) { printf("no string passed as argument\n"); return -1; } - result = crc32(argv[1], strlen(argv[1])); + result = crc32((unsigned char const *)argv[1], strlen(argv[1])); printf("0x%x\n", result); return 0; }