diff options
author | Marc Schütz <schuetzm@gmx.net> | 2014-06-30 21:52:07 +0200 |
---|---|---|
committer | Marc Schütz <schuetzm@gmx.net> | 2014-06-30 21:52:07 +0200 |
commit | ece7e535f39b0f294d0e34e6251d691c8da3aa22 (patch) | |
tree | fda76048bdbf5af3a59d07b63af5176b9642b71f /toxcore/TCP_server.h | |
parent | 000692fca0990bb49d4961c8fbe3e9c582a38248 (diff) |
Const-correctness for TCP_server.c
Diffstat (limited to 'toxcore/TCP_server.h')
-rw-r--r-- | toxcore/TCP_server.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/TCP_server.h b/toxcore/TCP_server.h index 40984778..def0a978 100644 --- a/toxcore/TCP_server.h +++ b/toxcore/TCP_server.h | |||
@@ -133,8 +133,8 @@ typedef struct { | |||
133 | 133 | ||
134 | /* Create new TCP server instance. | 134 | /* Create new TCP server instance. |
135 | */ | 135 | */ |
136 | TCP_Server *new_TCP_server(uint8_t ipv6_enabled, uint16_t num_sockets, uint16_t *ports, uint8_t *public_key, | 136 | TCP_Server *new_TCP_server(uint8_t ipv6_enabled, uint16_t num_sockets, const uint16_t *ports, const uint8_t *public_key, |
137 | uint8_t *secret_key, Onion *onion); | 137 | const uint8_t *secret_key, Onion *onion); |
138 | 138 | ||
139 | /* Run the TCP_server | 139 | /* Run the TCP_server |
140 | */ | 140 | */ |
@@ -164,7 +164,7 @@ int read_TCP_packet(sock_t sock, uint8_t *data, uint16_t length); | |||
164 | * return 0 if could not read any packet. | 164 | * return 0 if could not read any packet. |
165 | * return -1 on failure (connection must be killed). | 165 | * return -1 on failure (connection must be killed). |
166 | */ | 166 | */ |
167 | int read_packet_TCP_secure_connection(sock_t sock, uint16_t *next_packet_length, uint8_t *shared_key, | 167 | int read_packet_TCP_secure_connection(sock_t sock, uint16_t *next_packet_length, const uint8_t *shared_key, |
168 | uint8_t *recv_nonce, uint8_t *data, uint16_t max_len); | 168 | uint8_t *recv_nonce, uint8_t *data, uint16_t max_len); |
169 | 169 | ||
170 | 170 | ||