hash-object.c: type-fix to squelch compiler warnings.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
d165fa14f0
commit
99e0169206
@ -29,7 +29,7 @@ int main(int argc, char **argv)
|
|||||||
int i;
|
int i;
|
||||||
const char *type = "blob";
|
const char *type = "blob";
|
||||||
int write_object = 0;
|
int write_object = 0;
|
||||||
const char *prefix;
|
const char *prefix = NULL;
|
||||||
int prefix_length = -1;
|
int prefix_length = -1;
|
||||||
|
|
||||||
for (i = 1 ; i < argc; i++) {
|
for (i = 1 ; i < argc; i++) {
|
||||||
@ -46,7 +46,7 @@ int main(int argc, char **argv)
|
|||||||
write_object = 1;
|
write_object = 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
char *arg = argv[i];
|
const char *arg = argv[i];
|
||||||
if (0 <= prefix_length)
|
if (0 <= prefix_length)
|
||||||
arg = prefix_filename(prefix, prefix_length,
|
arg = prefix_filename(prefix, prefix_length,
|
||||||
arg);
|
arg);
|
||||||
|
Loading…
Reference in New Issue
Block a user