diff --git a/builtin-show-branch.c b/builtin-show-branch.c
index 306b850c720ecef7030bd7139f7c7d2758125ac4..828e6f86de22f8def68a49b702a27521c248a012 100644 (file)
--- a/builtin-show-branch.c
+++ b/builtin-show-branch.c
return 0;
}
if (MAX_REVS <= ref_name_cnt) {
return 0;
}
if (MAX_REVS <= ref_name_cnt) {
- fprintf(stderr, "warning: ignoring %s; "
- "cannot handle more than %d refs\n",
+ warning("ignoring %s; cannot handle more than %d refs",
refname, MAX_REVS);
return 0;
}
refname, MAX_REVS);
return 0;
}