From: Miklos Vajna Date: Tue, 24 Mar 2009 01:09:14 +0000 (+0100) Subject: builtin-rm: use warning() instead of fprintf(stderr, "warning: ") X-Git-Tag: v1.6.3-rc0~105 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c36d785da022cb7f7860ed85d78add3f102c4969;p=git.git builtin-rm: use warning() instead of fprintf(stderr, "warning: ") Signed-off-by: Miklos Vajna Signed-off-by: Junio C Hamano --- 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; }