summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-15 20:51:02 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-15 23:08:28 (GMT)
commitc0bbbb1ba93154e31f05eab69fee70006fe7acb2 (patch)
tree750a3ace0f7cc691db44a5624655a2614a8780a2 /sha1_file.c
parent3299c6f6a8a384453d025ffa117c5d8b35ba1972 (diff)
downloadgit-c0bbbb1ba93154e31f05eab69fee70006fe7acb2.zip
git-c0bbbb1ba93154e31f05eab69fee70006fe7acb2.tar.gz
git-c0bbbb1ba93154e31f05eab69fee70006fe7acb2.tar.bz2
sha1_file.c::add_packed_git(): fix type mismatch.
An object name is 20-byte 'unsigned char', not 'char'. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c
index cd814d7..82a0188 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -424,7 +424,7 @@ struct packed_git *add_packed_git(char *path, int path_len, int local)
struct packed_git *p;
unsigned long idx_size;
void *idx_map;
- char sha1[20];
+ unsigned char sha1[20];
if (check_packed_git_idx(path, &idx_size, &idx_map))
return NULL;