2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-01 14:55:18 +00:00

socket-util: Remove get_socket_error().

It has no remaining users.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
Ben Pfaff
2012-11-19 15:56:47 -08:00
parent d6cedfd9d2
commit 24f974c481
3 changed files with 0 additions and 20 deletions

View 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)
{