From 20951dda7dfc0625fcbaccde4ec049ef6f2caeb6 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 2 Aug 2013 15:32:13 +0200 Subject: DHT: Fix return value of time(). Signed-off-by: Andreas Schneider Signed-off-by: irungentoo --- core/DHT.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/DHT.h') 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" { #endif /* Current time, unix format */ -#define unix_time() ((uint32_t)time(NULL)) +#define unix_time() ((int64_t)time(NULL)) /* size of the client_id in bytes */ #define CLIENT_ID_SIZE crypto_box_PUBLICKEYBYTES -- cgit v1.2.3