summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorBrian Gerst <bgerst@didntduck.org>2005-05-18 12:14:09 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-18 15:44:23 (GMT)
commitbf0f910d1dd5e5b291ea818f3037e8f8fe8caffc (patch)
tree6da6a42bd7b97ea6ebd79544f4fb16713ac74dc3 /cache.h
parent02481aec2a2cfce7bc47d0d10876be5507f0b7ba (diff)
downloadgit-bf0f910d1dd5e5b291ea818f3037e8f8fe8caffc.zip
git-bf0f910d1dd5e5b291ea818f3037e8f8fe8caffc.tar.gz
git-bf0f910d1dd5e5b291ea818f3037e8f8fe8caffc.tar.bz2
[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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cache.h b/cache.h
index 041ec0b..858ea7f 100644
--- a/cache.h
+++ b/cache.h
@@ -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);