diff options
author | Mattias Andrée <maandree@kth.se> | 2019-04-12 22:32:50 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-04-12 22:32:50 +0200 |
commit | 658557736a803071a47bacb33e8471168e67e6be (patch) | |
tree | a3d048c7e0ac825bb2a3906de2107becdfa3a6c6 /shutdown.c | |
parent | Use C99 rather than C11 (diff) | |
download | liberror-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 'shutdown.c')
-rw-r--r-- | shutdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |