From 5617bf0bf1827733a9118a0f3ca866cf5353b1e0 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Mon, 5 Aug 2013 15:57:17 +0200 Subject: Use void for functions with no parameters --- core/net_crypto.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core/net_crypto.c') diff --git a/core/net_crypto.c b/core/net_crypto.c index 4ce173c5..1c56b95a 100644 --- a/core/net_crypto.c +++ b/core/net_crypto.c @@ -440,7 +440,7 @@ int is_cryptoconnected(int crypt_connection_id) /* Generate our public and private keys Only call this function the first time the program starts. */ -void new_keys() +void new_keys(void) { crypto_box_keypair(self_public_key,self_secret_key); } @@ -479,7 +479,7 @@ static int new_incoming(int id) /* TODO: optimize this handle all new incoming connections. */ -static void handle_incomings() +static void handle_incomings(void) { int income; while (1) { @@ -490,7 +490,7 @@ static void handle_incomings() } /* handle received packets for not yet established crypto connections. */ -static void receive_crypto() +static void receive_crypto(void) { uint32_t i; for (i = 0; i < MAX_CRYPTO_CONNECTIONS; ++i) { @@ -547,7 +547,7 @@ static void receive_crypto() /* run this to (re)initialize net_crypto sets all the global connection variables to their default values. */ -void initNetCrypto() +void initNetCrypto(void) { memset(crypto_connections, 0 ,sizeof(crypto_connections)); memset(incoming_connections, -1 ,sizeof(incoming_connections)); @@ -556,7 +556,7 @@ void initNetCrypto() crypto_connections[i].number = ~0; } -static void killTimedout() +static void killTimedout(void) { uint32_t i; for (i = 0; i < MAX_CRYPTO_CONNECTIONS; ++i) { @@ -570,7 +570,7 @@ static void killTimedout() } /* main loop */ -void doNetCrypto() +void doNetCrypto(void) { /* TODO:check if friend requests were sent correctly handle new incoming connections -- cgit v1.2.3