[PATCH 4/5] docsrc: fix crc32hash type

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy Dunlap
Date: Tuesday, July 29, 2008 - 1:05 pm

From: Randy Dunlap <randy.dunlap@oracle.com>

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>
---
 Documentation/pcmcia/crc32hash.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20080729.orig/Documentation/pcmcia/crc32hash.c
+++ linux-next-20080729/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;
 }


-- 

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 5/5] docsrc: fix getdelays printk formats, Randy Dunlap, (Tue Jul 29, 1:05 pm)
[PATCH 4/5] docsrc: fix crc32hash type, Randy Dunlap, (Tue Jul 29, 1:05 pm)
[PATCH 2/5] docsrc: fix procfs example, Randy Dunlap, (Tue Jul 29, 1:05 pm)
[PATCH 3/5] docsrc: fix ifenslave type, Randy Dunlap, (Tue Jul 29, 1:05 pm)
[PATCH 1/5] docsrc: build Documentation/ sources, Randy Dunlap, (Tue Jul 29, 1:05 pm)
Re: [PATCH 1/5] docsrc: build Documentation/ sources, Borislav Petkov, (Tue Jul 29, 1:27 pm)
Re: [PATCH 1/5] docsrc: build Documentation/ sources, Randy Dunlap, (Tue Jul 29, 2:10 pm)
Re: [PATCH 4/5] docsrc: fix crc32hash type, Dominik Brodowski, (Tue Jul 29, 11:47 pm)
Re: [PATCH 4/5] docsrc: fix crc32hash type, Andrew Morton, (Wed Jul 30, 12:18 am)
Re: [PATCH 4/5] docsrc: fix crc32hash type, Sam Ravnborg, (Wed Jul 30, 1:40 am)
Re: [PATCH 1/5] docsrc: build Documentation/ sources, Sam Ravnborg, (Wed Jul 30, 1:44 am)
Re: [PATCH 1/5] docsrc: build Documentation/ sources, Boris Petkov, (Wed Jul 30, 1:55 am)
Re: [PATCH 1/5] docsrc: build Documentation/ sources, Sam Ravnborg, (Wed Jul 30, 4:21 am)
Re: [PATCH 1/5] docsrc: build Documentation/ sources, Boris Petkov, (Wed Jul 30, 5:22 am)