From bd757c18597789d4f01cbd2ffc7c1f55e90cfcd0 Mon Sep 17 00:00:00 2001 From: Thiago Farina Date: Sun, 3 Jan 2010 11:20:30 -0500 Subject: Use warning function instead of fprintf(stderr, "Warning: ..."). Signed-off-by: Thiago Farina Signed-off-by: Junio C Hamano --- builtin-mv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'builtin-mv.c') 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"; -- cgit v1.2.1