diff options
author | AZ Huang <aitjcize@gmail.com> | 2013-11-29 23:38:06 +0800 |
---|---|---|
committer | AZ Huang <aitjcize@gmail.com> | 2013-11-29 23:38:06 +0800 |
commit | 2cb7f241325684a98acf33ffba539f859ea2247c (patch) | |
tree | 9abd27379ece55e90c6646273edb6dddf961ca9e /toxcore | |
parent | 8419d3469a843684ba51a774663db848cfaab615 (diff) |
Fix typo.
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/tox.c | 2 | ||||
-rw-r--r-- | toxcore/tox.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 2066b685..bdc110e6 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -37,7 +37,7 @@ typedef struct Messenger Tox; | |||
37 | * Format: [client_id (32 bytes)][nospam number (4 bytes)][checksum (2 bytes)] | 37 | * Format: [client_id (32 bytes)][nospam number (4 bytes)][checksum (2 bytes)] |
38 | * | 38 | * |
39 | */ | 39 | */ |
40 | void tox_add_address(Tox *tox, uint8_t *address) | 40 | void tox_get_address(Tox *tox, uint8_t *address) |
41 | { | 41 | { |
42 | Messenger *m = tox; | 42 | Messenger *m = tox; |
43 | getaddress(m, address); | 43 | getaddress(m, address); |
diff --git a/toxcore/tox.h b/toxcore/tox.h index b24374a9..407d7441 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -129,7 +129,7 @@ typedef struct Tox Tox; | |||
129 | /* return FRIEND_ADDRESS_SIZE byte address to give to others. | 129 | /* return FRIEND_ADDRESS_SIZE byte address to give to others. |
130 | * format: [client_id (32 bytes)][nospam number (4 bytes)][checksum (2 bytes)] | 130 | * format: [client_id (32 bytes)][nospam number (4 bytes)][checksum (2 bytes)] |
131 | */ | 131 | */ |
132 | void tox_add_address(Tox *tox, uint8_t *address); | 132 | void tox_get_address(Tox *tox, uint8_t *address); |
133 | 133 | ||
134 | /* Add a friend. | 134 | /* Add a friend. |
135 | * Set the data that will be sent along with friend request. | 135 | * Set the data that will be sent along with friend request. |