diff options
author | Brian Gerst <bgerst@didntduck.org> | 2005-05-18 08:14:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-18 08:44:23 -0700 |
commit | bf0f910d1dd5e5b291ea818f3037e8f8fe8caffc (patch) | |
tree | 6da6a42bd7b97ea6ebd79544f4fb16713ac74dc3 /http-pull.c | |
parent | 02481aec2a2cfce7bc47d0d10876be5507f0b7ba (diff) | |
download | git-bf0f910d1dd5e5b291ea818f3037e8f8fe8caffc.tar.gz git-bf0f910d1dd5e5b291ea818f3037e8f8fe8caffc.tar.xz |
[PATCH] Kill a bunch of pointer sign warnings for gcc4
- Raw hashes should be unsigned char.
- String functions want signed char.
- Hash and compress functions want unsigned char.
Signed-off By: Brian Gerst <bgerst@didntduck.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'http-pull.c')
-rw-r--r-- | http-pull.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http-pull.c b/http-pull.c index 024457a98..cc62f85f4 100644 --- a/http-pull.c +++ b/http-pull.c @@ -24,7 +24,7 @@ static int zret; static size_t fwrite_sha1_file(void *ptr, size_t eltsize, size_t nmemb, void *data) { - char expn[4096]; + unsigned char expn[4096]; size_t size = eltsize * nmemb; int posn = 0; do { @@ -49,7 +49,7 @@ int fetch(unsigned char *sha1) { char *hex = sha1_to_hex(sha1); char *filename = sha1_file_name(sha1); - char real_sha1[20]; + unsigned char real_sha1[20]; char *url; char *posn; |