@matheusbsbs / matheus-bagliano / commits / c36d785da0
Fork 0

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>

Miklos Vajna committed Mar 24, 2009 at 02:09 UTC c36d785da022cb7f7860ed85d78add3f102c4969
1 file changed +1 -2
builtin-rm.c
+1 -2
@@ -59,8 +59,7 @@ static int check_local_mod(unsigned char *head, int index_only)
59
60 if (lstat(ce->name, &st) < 0) {
61 if (errno != ENOENT)
62 - fprintf(stderr, "warning: '%s': %s",
63 - ce->name, strerror(errno));
62 + warning("'%s': %s", ce->name, strerror(errno));
63 /* It already vanished from the working tree */
64 continue;
65 }