summaryrefslogtreecommitdiff
path: root/core/Messenger.c
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/Messenger.c
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/Messenger.c')
-rw-r--r--core/Messenger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Messenger.c b/core/Messenger.c
index f8a794ce..30f3f658 100644
--- a/core/Messenger.c
+++ b/core/Messenger.c
@@ -27,7 +27,7 @@
27typedef struct { 27typedef struct {
28 uint8_t client_id[CLIENT_ID_SIZE]; 28 uint8_t client_id[CLIENT_ID_SIZE];
29 int crypt_connection_id; 29 int crypt_connection_id;
30 int friend_request_id; /* id of the friend request corresponding to the current friend request to the current friend. */ 30 int64_t friend_request_id; /* id of the friend request corresponding to the current friend request to the current friend. */
31 uint8_t status; /* 0 if no friend, 1 if added, 2 if friend request sent, 3 if confirmed friend, 4 if online. */ 31 uint8_t status; /* 0 if no friend, 1 if added, 2 if friend request sent, 3 if confirmed friend, 4 if online. */
32 uint8_t info[MAX_DATA_SIZE]; /* the data that is sent during the friend requests we do */ 32 uint8_t info[MAX_DATA_SIZE]; /* the data that is sent during the friend requests we do */
33 uint8_t name[MAX_NAME_LENGTH]; 33 uint8_t name[MAX_NAME_LENGTH];
@@ -491,7 +491,7 @@ static void doInbound()
491/*Interval in seconds between LAN discovery packet sending*/ 491/*Interval in seconds between LAN discovery packet sending*/
492#define LAN_DISCOVERY_INTERVAL 60 492#define LAN_DISCOVERY_INTERVAL 60
493 493
494static uint32_t last_LANdiscovery; 494static int64_t last_LANdiscovery;
495 495
496/*Send a LAN discovery packet every LAN_DISCOVERY_INTERVAL seconds*/ 496/*Send a LAN discovery packet every LAN_DISCOVERY_INTERVAL seconds*/
497static void LANdiscovery() 497static void LANdiscovery()