Skip to content

Commit 3daff7c

Browse files
committed
Merge branch 'maint'
* maint: builtin/init-db.c: eliminate -Wformat warning on Solaris
2 parents 8d68493 + 97f261b commit 3daff7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/init-db.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ static void separate_git_dir(const char *git_dir)
351351
else if (S_ISDIR(st.st_mode))
352352
src = git_link;
353353
else
354-
die(_("unable to handle file type %d"), st.st_mode);
354+
die(_("unable to handle file type %d"), (int)st.st_mode);
355355

356356
if (rename(src, git_dir))
357357
die_errno(_("unable to move %s to %s"), src, git_dir);

0 commit comments

Comments
 (0)