Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
check-racy.c: use error_errno()
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Sun, 8 May 2016 09:47:35 +0000
(16:47 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 9 May 2016 19:29:08 +0000
(12:29 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
check-racy.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
8d19e93
)
diff --git
a/check-racy.c
b/check-racy.c
index 00d92a16631a80ff8ec4e995dafcd3e55434fad5..24b6542352a60006ac23c09a7cc17fb3aef009fa 100644
(file)
--- 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;
}