From: Nguyễn Thái Ngọc Duy Date: Sun, 8 May 2016 09:47:51 +0000 (+0700) Subject: reachable.c: use error_errno() X-Git-Tag: v2.9.0-rc0~30^2~10 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/9a3acba1caead126a9c009eb00573fc9451f8cf2 reachable.c: use error_errno() Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- diff --git a/reachable.c b/reachable.c index ed35201896..d0199cace4 100644 --- a/reachable.c +++ b/reachable.c @@ -119,8 +119,7 @@ static int add_recent_loose(const unsigned char *sha1, */ if (errno == ENOENT) return 0; - return error("unable to stat %s: %s", - sha1_to_hex(sha1), strerror(errno)); + return error_errno("unable to stat %s", sha1_to_hex(sha1)); } add_recent_object(sha1, st.st_mtime, data);