diff options
author | Simon Levermann <simon@levermaenner.de> | 2013-08-08 18:06:10 +0200 |
---|---|---|
committer | Simon Levermann <simon@levermaenner.de> | 2013-08-08 18:06:10 +0200 |
commit | 320c5a6708fba36c48c62ec0dca8ad2d5b865b5d (patch) | |
tree | bb4d459ba2531f960f6f955a9facff500f8ffb4a /testing/toxic/main.c | |
parent | b5f5b1a111d9e08b2b001b5d4d76629019462f39 (diff) | |
parent | caedd4489ef34e4afffbde9c4917439f3187f6ab (diff) |
Merge branch 'upstream'
Diffstat (limited to 'testing/toxic/main.c')
-rw-r--r-- | testing/toxic/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/toxic/main.c b/testing/toxic/main.c index 13577cc7..162cce68 100644 --- a/testing/toxic/main.c +++ b/testing/toxic/main.c | |||
@@ -31,7 +31,10 @@ extern int add_req(uint8_t *public_key); // XXX | |||
31 | 31 | ||
32 | /* Holds status of chat windows */ | 32 | /* Holds status of chat windows */ |
33 | char WINDOW_STATUS[MAX_WINDOW_SLOTS]; | 33 | char WINDOW_STATUS[MAX_WINDOW_SLOTS]; |
34 | #define TOXICVER "0.1.0" //Will be moved to a -D flag later | 34 | |
35 | #ifndef TOXICVER | ||
36 | #define TOXICVER "NOVER" //Use the -D flag to set this | ||
37 | #endif | ||
35 | 38 | ||
36 | static ToxWindow windows[MAX_WINDOW_SLOTS]; | 39 | static ToxWindow windows[MAX_WINDOW_SLOTS]; |
37 | static ToxWindow* prompt; | 40 | static ToxWindow* prompt; |
@@ -46,7 +49,7 @@ void on_request(uint8_t *public_key, uint8_t *data, uint16_t length) | |||
46 | wprintw(prompt->window, "\nFriend request from:\n"); | 49 | wprintw(prompt->window, "\nFriend request from:\n"); |
47 | 50 | ||
48 | int i; | 51 | int i; |
49 | for (i = 0; i < 32; ++i) { | 52 | for (i = 0; i < KEY_SIZE_BYTES; ++i) { |
50 | wprintw(prompt->window, "%02x", public_key[i] & 0xff); | 53 | wprintw(prompt->window, "%02x", public_key[i] & 0xff); |
51 | } | 54 | } |
52 | 55 | ||