wrapper.c: use warning_errno()

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed May 8, 2016 at 16:48 UTC 1da045fb9db5db8f01eb5e7c6106880ca5274643
1 file changed +2 -2
wrapper.c
+2 -2
@@ -572,7 +572,7 @@ static int warn_if_unremovable(const char *op, const char *file, int rc)
572 if (!rc || errno == ENOENT)
573 return 0;
574 err = errno;
575 - warning("unable to %s %s: %s", op, file, strerror(errno));
575 + warning_errno("unable to %s %s", op, file);
576 errno = err;
577 return rc;
578 }
@@ -608,7 +608,7 @@ int remove_or_warn(unsigned int mode, const char *file)
608
609 void warn_on_inaccessible(const char *path)
610 {
611 - warning(_("unable to access '%s': %s"), path, strerror(errno));
611 + warning_errno(_("unable to access '%s'"), path);
612 }
613
614 static int access_error_is_ok(int err, unsigned flag)