summaryrefslogtreecommitdiff
path: root/hash-object.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-28 11:19:03 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-29 07:13:03 (GMT)
commit99e01692063cc48adee19e1f738472a579c14ca2 (patch)
tree7e0891caecdfd2516bb3953e46b74e8114dbdec5 /hash-object.c
parentd165fa14f0a111dfc85d964ecc037d0b280cd54f (diff)
downloadgit-99e01692063cc48adee19e1f738472a579c14ca2.zip
git-99e01692063cc48adee19e1f738472a579c14ca2.tar.gz
git-99e01692063cc48adee19e1f738472a579c14ca2.tar.bz2
hash-object.c: type-fix to squelch compiler warnings.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'hash-object.c')
-rw-r--r--hash-object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hash-object.c b/hash-object.c
index c3d05a8..ccba11c 100644
--- a/hash-object.c
+++ b/hash-object.c
@@ -29,7 +29,7 @@ int main(int argc, char **argv)
int i;
const char *type = "blob";
int write_object = 0;
- const char *prefix;
+ const char *prefix = NULL;
int prefix_length = -1;
for (i = 1 ; i < argc; i++) {
@@ -46,7 +46,7 @@ int main(int argc, char **argv)
write_object = 1;
}
else {
- char *arg = argv[i];
+ const char *arg = argv[i];
if (0 <= prefix_length)
arg = prefix_filename(prefix, prefix_length,
arg);