diff options
author | Gregory Mullen (grayhatter) <greg@grayhatter.com> | 2016-12-03 10:39:30 -0800 |
---|---|---|
committer | Gregory Mullen (grayhatter) <greg@grayhatter.com> | 2016-12-10 03:02:43 -0800 |
commit | d68505a2d3a1210e24514a562808e27f77c295d9 (patch) | |
tree | 00db9b6c7ff5e2b0477e089e4c76584507b0e090 /toxcore/net_crypto.c | |
parent | 697530af3b5a0f8e783f32caee3ebf48f7e7a3a7 (diff) |
net_crypto give handle_data_packet_helper a better name
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 84276c62..269d03a3 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -1321,8 +1321,8 @@ static void connection_kill(Net_Crypto *c, int crypt_connection_id, void *userda | |||
1321 | * return -1 on failure. | 1321 | * return -1 on failure. |
1322 | * return 0 on success. | 1322 | * return 0 on success. |
1323 | */ | 1323 | */ |
1324 | static int handle_data_packet_helper(Net_Crypto *c, int crypt_connection_id, const uint8_t *packet, uint16_t length, | 1324 | static int handle_data_packet_core(Net_Crypto *c, int crypt_connection_id, const uint8_t *packet, uint16_t length, |
1325 | bool udp, void *userdata) | 1325 | bool udp, void *userdata) |
1326 | { | 1326 | { |
1327 | if (length > MAX_CRYPTO_PACKET_SIZE || length <= CRYPTO_DATA_PACKET_MIN_SIZE) { | 1327 | if (length > MAX_CRYPTO_PACKET_SIZE || length <= CRYPTO_DATA_PACKET_MIN_SIZE) { |
1328 | return -1; | 1328 | return -1; |
@@ -1542,7 +1542,7 @@ static int handle_packet_connection(Net_Crypto *c, int crypt_connection_id, cons | |||
1542 | 1542 | ||
1543 | case NET_PACKET_CRYPTO_DATA: { | 1543 | case NET_PACKET_CRYPTO_DATA: { |
1544 | if (conn->status == CRYPTO_CONN_NOT_CONFIRMED || conn->status == CRYPTO_CONN_ESTABLISHED) { | 1544 | if (conn->status == CRYPTO_CONN_NOT_CONFIRMED || conn->status == CRYPTO_CONN_ESTABLISHED) { |
1545 | return handle_data_packet_helper(c, crypt_connection_id, packet, length, udp, userdata); | 1545 | return handle_data_packet_core(c, crypt_connection_id, packet, length, udp, userdata); |
1546 | } | 1546 | } |
1547 | 1547 | ||
1548 | return -1; | 1548 | return -1; |