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 /cache.h | |
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 'cache.h')
-rw-r--r-- | cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -143,7 +143,7 @@ extern char *sha1_file_name(const unsigned char *sha1); extern void * map_sha1_file(const unsigned char *sha1, unsigned long *size); extern void * unpack_sha1_file(void *map, unsigned long mapsize, char *type, unsigned long *size); extern void * read_sha1_file(const unsigned char *sha1, char *type, unsigned long *size); -extern int write_sha1_file(char *buf, unsigned long len, const char *type, unsigned char *return_sha1); +extern int write_sha1_file(void *buf, unsigned long len, const char *type, unsigned char *return_sha1); extern int check_sha1_signature(unsigned char *sha1, void *buf, unsigned long size, const char *type); @@ -167,7 +167,7 @@ extern int error(const char *err, ...); extern int cache_name_compare(const char *name1, int len1, const char *name2, int len2); extern void *read_object_with_reference(const unsigned char *sha1, - const unsigned char *required_type, + const char *required_type, unsigned long *size, unsigned char *sha1_ret); |