projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3784a7
)
docsrc: fix crc32hash type
author
Randy Dunlap
<
[email protected]
>
Tue, 12 Aug 2008 22:09:08 +0000
(15:09 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 12 Aug 2008 23:07:31 +0000
(16:07 -0700)
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 <
[email protected]
>
Acked-by: Dominik Brodowski <
[email protected]
>
Cc: Sam Ravnborg <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
Documentation/pcmcia/crc32hash.c
patch
|
blob
|
history
diff --git
a/Documentation/pcmcia/crc32hash.c
b/Documentation/pcmcia/crc32hash.c
index cbc36d299af808016fd0d018ed27a3cbfe57615e..4210e5abab8a8b86de57770420ac0cfff96a4b38 100644
(file)
--- 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;
}