1
0
mirror of https://github.com/git/git.git synced 2024-09-28 22:02:23 +02:00

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>
This commit is contained in:
Miklos Vajna 2009-03-24 02:09:14 +01:00 committed by Junio C Hamano
parent 2fd8c0a5db
commit c36d785da0

@ -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;
}