提交 99e01692 编写于 作者: J Junio C Hamano

hash-object.c: type-fix to squelch compiler warnings.

Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 d165fa14
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册