From 0045ace8a8e7c79250e0dec3a8021a89adaa9049 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 2 May 2015 21:55:42 -0400 Subject: [PATCH] Small cleanups. --- toxcore/DHT.c | 4 ++-- toxcore/TCP_server.h | 2 +- toxcore/network.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/toxcore/DHT.c b/toxcore/DHT.c index 9ebe11cf..8cd8852c 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c @@ -145,7 +145,7 @@ void get_shared_key(Shared_Keys *shared_keys, uint8_t *shared_key, const uint8_t */ void DHT_get_shared_key_recv(DHT *dht, uint8_t *shared_key, const uint8_t *client_id) { - return get_shared_key(&dht->shared_keys_recv, shared_key, dht->self_secret_key, client_id); + get_shared_key(&dht->shared_keys_recv, shared_key, dht->self_secret_key, client_id); } /* Copy shared_key to encrypt/decrypt DHT packet from client_id into shared_key @@ -153,7 +153,7 @@ void DHT_get_shared_key_recv(DHT *dht, uint8_t *shared_key, const uint8_t *clien */ void DHT_get_shared_key_sent(DHT *dht, uint8_t *shared_key, const uint8_t *client_id) { - return get_shared_key(&dht->shared_keys_sent, shared_key, dht->self_secret_key, client_id); + get_shared_key(&dht->shared_keys_sent, shared_key, dht->self_secret_key, client_id); } void to_net_family(IP *ip) diff --git a/toxcore/TCP_server.h b/toxcore/TCP_server.h index 727c4b4e..ba3e7308 100644 --- a/toxcore/TCP_server.h +++ b/toxcore/TCP_server.h @@ -85,7 +85,7 @@ typedef struct TCP_Priority_List TCP_Priority_List; struct TCP_Priority_List { TCP_Priority_List *next; uint16_t size, sent; - uint8_t data[0]; + uint8_t data[]; }; typedef struct TCP_Secure_Connection { diff --git a/toxcore/network.c b/toxcore/network.c index e8787127..22ee4202 100644 --- a/toxcore/network.c +++ b/toxcore/network.c @@ -813,7 +813,7 @@ void ipport_copy(IP_Port *target, const IP_Port *source) return; memcpy(target, source, sizeof(IP_Port)); -}; +} /* ip_ntoa * converts ip into a string