aboutsummaryrefslogtreecommitdiffstats
path: root/shutdown.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-04-12 22:32:50 +0200
committerMattias Andrée <maandree@kth.se>2019-04-12 22:32:50 +0200
commit658557736a803071a47bacb33e8471168e67e6be (patch)
treea3d048c7e0ac825bb2a3906de2107becdfa3a6c6 /shutdown.c
parentUse C99 rather than C11 (diff)
downloadliberror-libc-658557736a803071a47bacb33e8471168e67e6be.tar.gz
liberror-libc-658557736a803071a47bacb33e8471168e67e6be.tar.bz2
liberror-libc-658557736a803071a47bacb33e8471168e67e6be.tar.xz
shutdown: add name parameter
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--shutdown.c4
1 files changed, 2 insertions, 2 deletions
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;
}