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 <randy.dunlap@oracle.com> Acked-by: Dominik Brodowski <linux@dominikbrodowski.net> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Родитель
b3784a77f6
Коммит
ffab10ec65
|
@ -26,7 +26,7 @@ int main(int argc, char **argv) {
|
||||||
printf("no string passed as argument\n");
|
printf("no string passed as argument\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
result = crc32(argv[1], strlen(argv[1]));
|
result = crc32((unsigned char const *)argv[1], strlen(argv[1]));
|
||||||
printf("0x%x\n", result);
|
printf("0x%x\n", result);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче