diff options
author | Thiago Farina <tfransosi@gmail.com> | 2010-01-03 11:20:30 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-03 16:17:03 -0800 |
commit | bd757c18597789d4f01cbd2ffc7c1f55e90cfcd0 (patch) | |
tree | 45b5546f930e9f3836637f996bb3d4c39ca80e9f /builtin-mv.c | |
parent | b7fcb582e53cf2b3600263afa08cf4dce49a13f7 (diff) | |
download | git-bd757c18597789d4f01cbd2ffc7c1f55e90cfcd0.tar.gz |
Use warning function instead of fprintf(stderr, "Warning: ...").
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-mv.c')
-rw-r--r-- | builtin-mv.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin-mv.c b/builtin-mv.c index f633d81424..82471869a0 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"; |