Code

builtin-rm: use warning() instead of fprintf(stderr, "warning: ")
authorMiklos Vajna <vmiklos@frugalware.org>
Tue, 24 Mar 2009 01:09:14 +0000 (02:09 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Mar 2009 04:02:27 +0000 (21:02 -0700)
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-rm.c

index c11f45585825962e61bdee4bdd6df206f0a141c6..269d60890ac6732f05b835e88bdb60a10bb3d441 100644 (file)
@@ -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;
                }