summaryrefslogtreecommitdiff
path: root/builtin-rm.c
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2009-03-24 02:09:14 +0100
committerJunio C Hamano <gitster@pobox.com>2009-03-23 21:02:27 -0700
commitc36d785da022cb7f7860ed85d78add3f102c4969 (patch)
treefd6081523c59992e2a59a199d4b01ed111cbb943 /builtin-rm.c
parent2fd8c0a5dbc614a6a7853558e4af8298acefc96a (diff)
downloadgit-c36d785da022cb7f7860ed85d78add3f102c4969.tar.gz
builtin-rm: use warning() instead of fprintf(stderr, "warning: ")
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-rm.c')
-rw-r--r--builtin-rm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin-rm.c b/builtin-rm.c
index c11f455858..269d60890a 100644
--- a/builtin-rm.c
+++ b/builtin-rm.c
@@ -59,8 +59,7 @@ static int check_local_mod(unsigned char *head, int index_only)
if (lstat(ce->name, &st) < 0) {
if (errno != ENOENT)
- fprintf(stderr, "warning: '%s': %s",
- ce->name, strerror(errno));
+ warning("'%s': %s", ce->name, strerror(errno));
/* It already vanished from the working tree */
continue;
}