diff options
author | irungentoo <irungentoo@gmail.com> | 2015-02-24 20:29:01 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-02-24 20:29:01 -0500 |
commit | d83efd35dd342da7f5b0f4b6e11ffd943d7f3c63 (patch) | |
tree | 4fa5e862c65c9bb9a007dab78424c161ddd61341 /testing/dns3_test.c | |
parent | 8fa8e9dcd798540bf539d502d0dbba71184f7489 (diff) |
Ported some of the code in testing/ to the new api.
Diffstat (limited to 'testing/dns3_test.c')
-rw-r--r-- | testing/dns3_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/dns3_test.c b/testing/dns3_test.c index 7052aae7..1f6c6a12 100644 --- a/testing/dns3_test.c +++ b/testing/dns3_test.c | |||
@@ -98,7 +98,7 @@ int main(int argc, char *argv[]) | |||
98 | 98 | ||
99 | for (i = r_len - 1; i != 0 && buffer[i] != '='; --i); | 99 | for (i = r_len - 1; i != 0 && buffer[i] != '='; --i); |
100 | 100 | ||
101 | uint8_t tox_id[TOX_FRIEND_ADDRESS_SIZE]; | 101 | uint8_t tox_id[TOX_ADDRESS_SIZE]; |
102 | 102 | ||
103 | if (tox_decrypt_dns3_TXT(d, tox_id, buffer + i + 1, r_len - (i + 1), request_id) != 0) | 103 | if (tox_decrypt_dns3_TXT(d, tox_id, buffer + i + 1, r_len - (i + 1), request_id) != 0) |
104 | return -1; | 104 | return -1; |
@@ -106,7 +106,7 @@ int main(int argc, char *argv[]) | |||
106 | printf("The Tox id for username %s is:\n", argv[3]); | 106 | printf("The Tox id for username %s is:\n", argv[3]); |
107 | 107 | ||
108 | //unsigned int i; | 108 | //unsigned int i; |
109 | for (i = 0; i < TOX_FRIEND_ADDRESS_SIZE; ++i) { | 109 | for (i = 0; i < TOX_ADDRESS_SIZE; ++i) { |
110 | printf("%02hhX", tox_id[i]); | 110 | printf("%02hhX", tox_id[i]); |
111 | } | 111 | } |
112 | 112 | ||