OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c979c7
)
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
diff --git
a/server-info.c
b/server-info.c
index
5a86e29
..
75dd677
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)