diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-06-08 21:14:58 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-06-08 21:14:58 +0000 |
commit | 19389a3674fc4ec2077d7c3f80882398eac67f4e (patch) | |
tree | 60132dadff49b80013c590f6efca57fc600a4e2e /src/or/or.h | |
parent | 1d6db7ec3d319fe16b285cd540e3e25df74efd91 (diff) | |
download | tor-19389a3674fc4ec2077d7c3f80882398eac67f4e.tar.gz tor-19389a3674fc4ec2077d7c3f80882398eac67f4e.zip |
r13328@catbus: nickm | 2007-06-08 17:14:55 -0400
Arg. Irix apparently #defines sa_family to something. Thus, naming fields or variables "sa_family" will not work.
svn:r10541
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/or.h b/src/or/or.h index be47e211d7..79eb4b7479 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -786,9 +786,9 @@ typedef struct connection_t { time_t timestamp_created; /**< When was this connection_t created? */ /* XXXX020 make this ipv6-capable */ - int sa_family; /**< Address family of this connection's socket. Usually - * AF_INET, but it can also be AF_UNIX, or in the future - * AF_INET6 */ + int socket_family; /**< Address family of this connection's socket. Usually + * AF_INET, but it can also be AF_UNIX, or in the future + * AF_INET6 */ uint32_t addr; /**< IP of the other side of the connection; used to identify * routers, along with port. */ uint16_t port; /**< If non-zero, port on the other end @@ -2347,7 +2347,7 @@ or_options_t *options_new(void); const char *conn_type_to_string(int type); const char *conn_state_to_string(int type, int state); -connection_t *connection_new(int type, int sa_family); +connection_t *connection_new(int type, int socket_family); void connection_link_connections(connection_t *conn_a, connection_t *conn_b); void connection_unregister_events(connection_t *conn); void connection_free(connection_t *conn); |