Skip to content

Commit 1da045f

Browse files
pcloudsgitster
authored andcommitted
wrapper.c: use warning_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1c8ead9 commit 1da045f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wrapper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ static int warn_if_unremovable(const char *op, const char *file, int rc)
572572
if (!rc || errno == ENOENT)
573573
return 0;
574574
err = errno;
575-
warning("unable to %s %s: %s", op, file, strerror(errno));
575+
warning_errno("unable to %s %s", op, file);
576576
errno = err;
577577
return rc;
578578
}
@@ -608,7 +608,7 @@ int remove_or_warn(unsigned int mode, const char *file)
608608

609609
void warn_on_inaccessible(const char *path)
610610
{
611-
warning(_("unable to access '%s': %s"), path, strerror(errno));
611+
warning_errno(_("unable to access '%s'"), path);
612612
}
613613

614614
static int access_error_is_ok(int err, unsigned flag)

0 commit comments

Comments
 (0)