summaryrefslogtreecommitdiff
path: root/core/DHT.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-08-02 15:32:13 +0200
committerirungentoo <irungentoo@gmail.com>2013-08-02 09:41:22 -0400
commit20951dda7dfc0625fcbaccde4ec049ef6f2caeb6 (patch)
tree2cbecff5536d97df2601829d60578bf7589bf481 /core/DHT.h
parent7379392d8097bc4f8fd49aed714fd6eab05b9d39 (diff)
DHT: Fix return value of time().
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Signed-off-by: irungentoo <irungentoo@gmail.com>
Diffstat (limited to 'core/DHT.h')
-rw-r--r--core/DHT.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/DHT.h b/core/DHT.h
index dbb640a5..5e1fd0a5 100644
--- a/core/DHT.h
+++ b/core/DHT.h
@@ -31,7 +31,7 @@ extern "C" {
31#endif 31#endif
32 32
33/* Current time, unix format */ 33/* Current time, unix format */
34#define unix_time() ((uint32_t)time(NULL)) 34#define unix_time() ((int64_t)time(NULL))
35 35
36/* size of the client_id in bytes */ 36/* size of the client_id in bytes */
37#define CLIENT_ID_SIZE crypto_box_PUBLICKEYBYTES 37#define CLIENT_ID_SIZE crypto_box_PUBLICKEYBYTES