X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=convert-cache.c;h=77f8bff9ac0cd61412e69921c610e7301f7c350b;hb=001d4a27dbfaaa59c25dc35dafc69bd9b9bc21d3;hp=4d34d2d57ecda02aea70fab008fab32f5a4391b0;hpb=3c249c950649a37f2871a8b193f01a0640a20aef;p=git.git diff --git a/convert-cache.c b/convert-cache.c index 4d34d2d5..77f8bff9 100644 --- a/convert-cache.c +++ b/convert-cache.c @@ -99,7 +99,7 @@ static int write_subdirectory(void *buffer, unsigned long size, const char *base continue; } - newlen += sprintf(new + newlen, "%o %.*s", S_IFDIR, slash - path, path); + newlen += sprintf(new + newlen, "%o %.*s", S_IFDIR, (int)(slash - path), path); new[newlen++] = 0; sha1 = (unsigned char *)(new + newlen); newlen += 20; @@ -304,7 +304,7 @@ int main(int argc, char **argv) struct entry *entry; if (argc != 2 || get_sha1(argv[1], sha1)) - usage("convert-cache "); + usage("git-convert-cache "); entry = convert_entry(sha1); printf("new sha1: %s\n", sha1_to_hex(entry->new_sha1));