socket-util: Remove get_socket_error().
[openvswitch] / lib / socket-util.c
index 4843cc5423f1384cdc7eb7357f86f1dbd87170c8..48f42f195c6b0b45e03a5703c91a3d7490fc9a23 100644 (file)
@@ -205,19 +205,6 @@ lookup_hostname(const char *host_name, struct in_addr *addr)
             : EINVAL);
 }
 
-/* Returns the error condition associated with socket 'fd' and resets the
- * socket's error status. */
-int
-get_socket_error(int fd)
-{
-    int error;
-
-    if (getsockopt_int(fd, SOL_SOCKET, SO_ERROR, "SO_ERROR", &error)) {
-        error = errno;
-    }
-    return error;
-}
-
 int
 check_connection_completion(int fd)
 {