Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
server-info.c: use error_errno()
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Sun, 8 May 2016 09:47:55 +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>
server-info.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
6c979c7
)
diff --git
a/server-info.c
b/server-info.c
index 5a86e297b51261b5f1ae9fa6dad6fa7dc86cd4ba..75dd6774136258c677fe4f4bbe2124c83b4cea68 100644
(file)
--- a/
server-info.c
+++ b/
server-info.c
@@
-36,7
+36,7
@@
static int update_info_file(char *path, int (*generate)(FILE *))
out:
if (ret) {
- error
("unable to update %s: %s", path, strerror(errno)
);
+ error
_errno("unable to update %s", path
);
if (fp)
fclose(fp);
else if (fd >= 0)