summaryrefslogtreecommitdiff
path: root/check-racy.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-05-08 16:47:35 +0700
committerJunio C Hamano <gitster@pobox.com>2016-05-09 12:29:08 -0700
commiteb031a580163b396ff0e4ee0f219758b517380d5 (patch)
tree519e2fe50fc5eda15c23187325d4ac46e52db387 /check-racy.c
parent8d19e9309411ca875928b9336ff626b8b6851fcb (diff)
downloadgit-eb031a580163b396ff0e4ee0f219758b517380d5.tar.gz
check-racy.c: use error_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'check-racy.c')
-rw-r--r--check-racy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/check-racy.c b/check-racy.c
index 00d92a1663..24b6542352 100644
--- a/check-racy.c
+++ b/check-racy.c
@@ -12,7 +12,7 @@ int main(int ac, char **av)
struct stat st;
if (lstat(ce->name, &st)) {
- error("lstat(%s): %s", ce->name, strerror(errno));
+ error_errno("lstat(%s)", ce->name);
continue;
}