]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-bottom-half/cloudlibc/src/libc/sys/socket/shutdown.c
Delete several blocks of unused code. (#294)
[wasi-libc.git] / libc-bottom-half / cloudlibc / src / libc / sys / socket / shutdown.c
index 883b551ae832bf9f21ccf9794ce3ebe299cb38ac..85ede06d1b72d206f15e8d4ee01016b090ec2299 100644 (file)
@@ -2,8 +2,6 @@
 //
 // SPDX-License-Identifier: BSD-2-Clause
 
-#include <common/errno.h>
-
 #include <sys/socket.h>
 
 #include <assert.h>
@@ -22,7 +20,6 @@ int shutdown(int socket, int how) {
 
   __wasi_errno_t error = __wasi_sock_shutdown(socket, how);
   if (error != 0) {
-    errno = errno_fixup_socket(socket, error);
     return -1;
   }
   return error;