diff options
author | defanor <defanor@uberspace.net> | 2020-02-29 23:49:27 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2020-02-29 23:49:27 +0300 |
commit | c59170241676d156356ff4f2f04cee89321c65e2 (patch) | |
tree | 2ab398dfe9f92b03d57117b67f3fec3ba8106bcd /src/rexmpp_tcp.h | |
parent | 9f644b825cc6d0feb68ddd4bc971b8b32d7ec6b5 (diff) |
Use uint16_t for port numbers
Diffstat (limited to 'src/rexmpp_tcp.h')
-rw-r--r-- | src/rexmpp_tcp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rexmpp_tcp.h b/src/rexmpp_tcp.h index 124da2a..e4a6dff 100644 --- a/src/rexmpp_tcp.h +++ b/src/rexmpp_tcp.h @@ -66,7 +66,7 @@ struct rexmpp_tcp_connection { /** @brief A host we are connecting to. */ const char *host; /** @brief A port we are connecting to. */ - int port; + uint16_t port; /** @brief Resolver channel. */ ares_channel resolver_channel; @@ -116,7 +116,7 @@ struct rexmpp_tcp_connection { rexmpp_tcp_conn_error_t rexmpp_tcp_conn_init (rexmpp_tcp_conn_t *conn, const char *host, - int port); + uint16_t port); /** @brief Continues a connection process. |