diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-08-02 15:32:13 +0200 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-02 09:41:22 -0400 |
commit | 20951dda7dfc0625fcbaccde4ec049ef6f2caeb6 (patch) | |
tree | 2cbecff5536d97df2601829d60578bf7589bf481 /core/DHT.h | |
parent | 7379392d8097bc4f8fd49aed714fd6eab05b9d39 (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |