From 658557736a803071a47bacb33e8471168e67e6be Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 12 Apr 2019 22:32:50 +0200 Subject: shutdown: add name parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- shutdown.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shutdown.c') diff --git a/shutdown.c b/shutdown.c index 3ccdfd0..4e5f4cf 100644 --- a/shutdown.c +++ b/shutdown.c @@ -3,7 +3,7 @@ int -liberror_shutdown(int fd, int how) +liberror_shutdown(int fd, int how, const char *fname) { const char *desc; if (!shutdown(fd, how)) @@ -28,6 +28,6 @@ liberror_shutdown(int fd, int how) desc = ""; break; } - liberror_set_error_errno(desc, "shutdown", errno); + liberror_libc_set_error_one_file(desc, "shutdown", "Socket file", fd, fname); return -1; } -- cgit v1.2.3-70-g09d2