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>maint
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 (lstat(ce->name, &st) < 0) {
|
||||||
if (errno != ENOENT)
|
if (errno != ENOENT)
|
||||||
fprintf(stderr, "warning: '%s': %s",
|
warning("'%s': %s", ce->name, strerror(errno));
|
||||||
ce->name, strerror(errno));
|
|
||||||
/* It already vanished from the working tree */
|
/* It already vanished from the working tree */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue