diff options
author | notsecure <notsecure@marek.ca> | 2014-06-23 15:17:28 -0400 |
---|---|---|
committer | notsecure <notsecure@marek.ca> | 2014-06-23 15:17:28 -0400 |
commit | 97c548bc8063bcca9f06680d371d3b944c907801 (patch) | |
tree | cbbe6b02e23408211af87bc19fdbc83892caaf96 /toxdns/toxdns.c | |
parent | 3303b29da1869f2275df19f87a8b0f0d1cf72bc4 (diff) |
unrelated: got rid of some warnings
Diffstat (limited to 'toxdns/toxdns.c')
-rw-r--r-- | toxdns/toxdns.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/toxdns/toxdns.c b/toxdns/toxdns.c index 3eafc3de..e6892871 100644 --- a/toxdns/toxdns.c +++ b/toxdns/toxdns.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #endif | 26 | #endif |
27 | 27 | ||
28 | #include "../toxcore/Messenger.h" | 28 | #include "../toxcore/Messenger.h" |
29 | #include "../toxcore/logger.h" | ||
29 | #include "toxdns.h" | 30 | #include "toxdns.h" |
30 | 31 | ||
31 | static const char base32[32] = {"abcdefghijklmnopqrstuvwxyz012345"}; | 32 | static const char base32[32] = {"abcdefghijklmnopqrstuvwxyz012345"}; |
@@ -43,7 +44,7 @@ uint8_t i = 0; \ | |||
43 | } \ | 44 | } \ |
44 | } \ | 45 | } \ |
45 | } \ | 46 | } \ |
46 | 47 | ||
47 | typedef struct { | 48 | typedef struct { |
48 | uint8_t temp_pk[crypto_box_PUBLICKEYBYTES]; | 49 | uint8_t temp_pk[crypto_box_PUBLICKEYBYTES]; |
49 | uint8_t temp_sk[crypto_box_SECRETKEYBYTES]; | 50 | uint8_t temp_sk[crypto_box_SECRETKEYBYTES]; |
@@ -143,7 +144,7 @@ int tox_generate_dns3_string(void *dns3_object, uint8_t *string, uint16_t string | |||
143 | } | 144 | } |
144 | 145 | ||
145 | if (end_len != string - old_str) { | 146 | if (end_len != string - old_str) { |
146 | printf("tox_generate_dns3_string Fail, %u != %u\n", end_len, string - old_str); | 147 | LOGGER_ERROR("tox_generate_dns3_string Fail, %u != %lu\n", end_len, string - old_str); |
147 | return -1; | 148 | return -1; |
148 | } | 149 | } |
149 | 150 | ||