diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-11 20:58:28 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-18 14:28:38 -0400 |
commit | 63b67577d6df1080e0bca89d66a2e1550da6265d (patch) | |
tree | 2c76b237f2668cb90800402dcb2f21ab29a07eb5 /src/common/compat.h | |
parent | eb9420082ddf88462fc1ff7589c58094d7681f64 (diff) | |
download | tor-63b67577d6df1080e0bca89d66a2e1550da6265d.tar.gz tor-63b67577d6df1080e0bca89d66a2e1550da6265d.zip |
Check return values from fcntl and setsockopt
(Based on a patch from flupzor; bug #8206)
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index f9eb4ba0be..f0a34aae41 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -518,7 +518,7 @@ int tor_inet_aton(const char *cp, struct in_addr *addr) ATTR_NONNULL((1,2)); const char *tor_inet_ntop(int af, const void *src, char *dst, size_t len); int tor_inet_pton(int af, const char *src, void *dst); int tor_lookup_hostname(const char *name, uint32_t *addr) ATTR_NONNULL((1,2)); -void set_socket_nonblocking(tor_socket_t socket); +int set_socket_nonblocking(tor_socket_t socket); int tor_socketpair(int family, int type, int protocol, tor_socket_t fd[2]); int network_init(void); |