Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
wrapper.c: use warning_errno()
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Sun, 8 May 2016 09:48:01 +0000
(16:48 +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>
wrapper.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
1c8ead9
)
diff --git
a/wrapper.c
b/wrapper.c
index 9afc1a021c224d4ff2230fffeb0e4f0882d4a99e..3df2fe0e5eb6b49bca5994338094e39982a161cf 100644
(file)
--- a/
wrapper.c
+++ b/
wrapper.c
@@
-572,7
+572,7
@@
static int warn_if_unremovable(const char *op, const char *file, int rc)
if (!rc || errno == ENOENT)
return 0;
err = errno;
- warning
("unable to %s %s: %s", op, file, strerror(errno)
);
+ warning
_errno("unable to %s %s", op, file
);
errno = err;
return rc;
}
@@
-608,7
+608,7
@@
int remove_or_warn(unsigned int mode, const char *file)
void warn_on_inaccessible(const char *path)
{
- warning
(_("unable to access '%s': %s"), path, strerror(errno)
);
+ warning
_errno(_("unable to access '%s'"), path
);
}
static int access_error_is_ok(int err, unsigned flag)