From c36d785da022cb7f7860ed85d78add3f102c4969 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 24 Mar 2009 02:09:14 +0100 Subject: [PATCH] builtin-rm: use warning() instead of fprintf(stderr, "warning: ") Signed-off-by: Miklos Vajna Signed-off-by: Junio C Hamano --- builtin-rm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builtin-rm.c b/builtin-rm.c index c11f45585..269d60890 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; } -- 2.26.2