Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gerst <bgerst@didntduck.org>2005-05-18 16:14:09 +0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-18 19:44:23 +0400
commitbf0f910d1dd5e5b291ea818f3037e8f8fe8caffc (patch)
tree6da6a42bd7b97ea6ebd79544f4fb16713ac74dc3 /diff-files.c
parent02481aec2a2cfce7bc47d0d10876be5507f0b7ba (diff)
[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 'diff-files.c')
-rw-r--r--diff-files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/diff-files.c b/diff-files.c
index 54dd8bf176..d556b96884 100644
--- a/diff-files.c
+++ b/diff-files.c
@@ -48,7 +48,7 @@ static void show_file(int pfx, struct cache_entry *ce)
}
static void show_modified(int oldmode, int mode,
- const char *old_sha1, const char *sha1,
+ const unsigned char *old_sha1, const unsigned char *sha1,
char *path)
{
char old_sha1_hex[41];
@@ -64,7 +64,7 @@ static void show_modified(int oldmode, int mode,
int main(int argc, char **argv)
{
- static const char null_sha1[20] = { 0, };
+ static const unsigned char null_sha1[20] = { 0, };
int entries = read_cache();
int i;