Skip to content

Commit

Permalink
hash-object.c: type-fix to squelch compiler warnings.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Nov 29, 2005
1 parent d165fa1 commit 99e0169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hash-object.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand All @@ -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);
Expand Down

0 comments on commit 99e0169

Please sign in to comment.