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 /tar-tree.c | |
parent | 02481aec2a2cfce7bc47d0d10876be5507f0b7ba (diff) | |
download | git-bf0f910d1dd5e5b291ea818f3037e8f8fe8caffc.tar.gz |
[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 'tar-tree.c')
-rw-r--r-- | tar-tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tar-tree.c b/tar-tree.c index d313c80565..f6df3722a8 100644 --- a/tar-tree.c +++ b/tar-tree.c @@ -205,7 +205,7 @@ static void append_extended_header(char **p, const char *keyword, append_char(p, '\n'); } -static void write_header(const char *, char, const char *, struct path_prefix *, +static void write_header(const unsigned char *, char, const char *, struct path_prefix *, const char *, unsigned int, void *, unsigned long); /* stores a pax extended header directly in the block buffer */ @@ -238,7 +238,7 @@ static void write_extended_header(const char *headerfilename, int is_dir, free(buffer); } -static void write_global_extended_header(const char *sha1) +static void write_global_extended_header(const unsigned char *sha1) { char *p; unsigned int size; @@ -253,7 +253,7 @@ static void write_global_extended_header(const char *sha1) } /* stores a ustar header directly in the block buffer */ -static void write_header(const char *sha1, char typeflag, const char *basepath, +static void write_header(const unsigned char *sha1, char typeflag, const char *basepath, struct path_prefix *prefix, const char *path, unsigned int mode, void *buffer, unsigned long size) { |