X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-mv.c;h=82471869a0b677202fb5585e2fca880d16478af8;hb=71b3ef11fa0aade4a514c51b83438858a4a3c03b;hp=f633d81424f5e41cb85ac660dbdc9f4913852673;hpb=0748494e866041034605aaf177f29a61bdc25951;p=git.git diff --git a/builtin-mv.c b/builtin-mv.c index f633d8142..82471869a 100644 --- a/builtin-mv.c +++ b/builtin-mv.c @@ -169,9 +169,7 @@ int cmd_mv(int argc, const char **argv, const char *prefix) * check both source and destination */ if (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)) { - fprintf(stderr, "Warning: %s;" - " will overwrite!\n", - bad); + warning("%s; will overwrite!", bad); bad = NULL; } else bad = "Cannot overwrite";