diff options
author | Florian Hahn <flo@fhahn.com> | 2013-08-05 15:57:17 +0200 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2013-08-05 15:57:17 +0200 |
commit | 5617bf0bf1827733a9118a0f3ca866cf5353b1e0 (patch) | |
tree | 0039de12cc0d6576930a45068af9fdfc63063128 /core/network.c | |
parent | 5e43dc7bd8c790a43c22fd6ab47e9dbef9205186 (diff) |
Use void for functions with no parameters
Diffstat (limited to 'core/network.c')
-rw-r--r-- | core/network.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/network.c b/core/network.c index c58549bf..8c6fa7b6 100644 --- a/core/network.c +++ b/core/network.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include "network.h" | 24 | #include "network.h" |
25 | 25 | ||
26 | /* returns current UNIX time in microseconds (us). */ | 26 | /* returns current UNIX time in microseconds (us). */ |
27 | uint64_t current_time() | 27 | uint64_t current_time(void) |
28 | { | 28 | { |
29 | uint64_t time; | 29 | uint64_t time; |
30 | #ifdef WIN32 | 30 | #ifdef WIN32 |
@@ -46,7 +46,7 @@ uint64_t current_time() | |||
46 | 46 | ||
47 | /* return a random number | 47 | /* return a random number |
48 | NOTE: this function should probably not be used where cryptographic randomness is absolutely necessary */ | 48 | NOTE: this function should probably not be used where cryptographic randomness is absolutely necessary */ |
49 | uint32_t random_int() | 49 | uint32_t random_int(void) |
50 | { | 50 | { |
51 | #ifndef VANILLA_NACL | 51 | #ifndef VANILLA_NACL |
52 | //NOTE: this function comes from libsodium | 52 | //NOTE: this function comes from libsodium |
@@ -153,7 +153,7 @@ int init_networking(IP ip, uint16_t port) | |||
153 | } | 153 | } |
154 | 154 | ||
155 | /* function to cleanup networking stuff */ | 155 | /* function to cleanup networking stuff */ |
156 | void shutdown_networking() | 156 | void shutdown_networking(void) |
157 | { | 157 | { |
158 | #ifdef WIN32 | 158 | #ifdef WIN32 |
159 | closesocket(sock); | 159 | closesocket(sock); |