diff options
-rw-r--r-- | core/DHT.h | 2 | ||||
-rw-r--r-- | core/network.h | 5 | ||||
-rw-r--r-- | testing/toxic/main.c | 5 |
3 files changed, 9 insertions, 3 deletions
@@ -30,8 +30,6 @@ | |||
30 | extern "C" { | 30 | extern "C" { |
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | /* Current time, unix format */ | ||
34 | #define unix_time() ((uint64_t)time(NULL)) | ||
35 | 33 | ||
36 | /* size of the client_id in bytes */ | 34 | /* size of the client_id in bytes */ |
37 | #define CLIENT_ID_SIZE crypto_box_PUBLICKEYBYTES | 35 | #define CLIENT_ID_SIZE crypto_box_PUBLICKEYBYTES |
diff --git a/core/network.h b/core/network.h index d246a9d1..d3c39333 100644 --- a/core/network.h +++ b/core/network.h | |||
@@ -66,6 +66,11 @@ extern "C" { | |||
66 | 66 | ||
67 | #define MAX_UDP_PACKET_SIZE 65507 | 67 | #define MAX_UDP_PACKET_SIZE 65507 |
68 | 68 | ||
69 | |||
70 | /* Current time, unix format */ | ||
71 | #define unix_time() ((uint64_t)time(NULL)) | ||
72 | |||
73 | |||
69 | typedef union { | 74 | typedef union { |
70 | uint8_t c[4]; | 75 | uint8_t c[4]; |
71 | uint16_t s[2]; | 76 | uint16_t s[2]; |
diff --git a/testing/toxic/main.c b/testing/toxic/main.c index d4579571..7fa9e964 100644 --- a/testing/toxic/main.c +++ b/testing/toxic/main.c | |||
@@ -22,7 +22,10 @@ extern int add_req(uint8_t *public_key); // XXX | |||
22 | 22 | ||
23 | /* Holds status of chat windows */ | 23 | /* Holds status of chat windows */ |
24 | char WINDOW_STATUS[MAX_WINDOW_SLOTS]; | 24 | char WINDOW_STATUS[MAX_WINDOW_SLOTS]; |
25 | //#define TOXICVER "0.1.0" //Will be moved to a -D flag later | 25 | |
26 | #ifndef TOXICVER | ||
27 | #define TOXICVER "NOVER" //Use the -D flag to set this | ||
28 | #endif | ||
26 | 29 | ||
27 | static ToxWindow windows[MAX_WINDOW_SLOTS]; | 30 | static ToxWindow windows[MAX_WINDOW_SLOTS]; |
28 | static ToxWindow* prompt; | 31 | static ToxWindow* prompt; |