Skip to content

Commit

Permalink
builtin-rm: use warning() instead of fprintf(stderr, "warning: ")
Browse files Browse the repository at this point in the history
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Miklos Vajna authored and Junio C Hamano committed Mar 24, 2009
1 parent 2fd8c0a commit c36d785
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions builtin-rm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c36d785

Please sign in to comment.