From 2cb7f241325684a98acf33ffba539f859ea2247c Mon Sep 17 00:00:00 2001 From: AZ Huang Date: Fri, 29 Nov 2013 23:38:06 +0800 Subject: [PATCH] Fix typo. --- testing/nTox.c | 2 +- testing/tox_sync.c | 2 +- toxcore/tox.c | 2 +- toxcore/tox.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/testing/nTox.c b/testing/nTox.c index acd7d971..02b93d6f 100644 --- a/testing/nTox.c +++ b/testing/nTox.c @@ -270,7 +270,7 @@ void get_id(Tox *m, char *data) sprintf(data, "[i] ID: "); int offset = strlen(data); uint8_t address[TOX_FRIEND_ADDRESS_SIZE]; - tox_add_address(m, address); + tox_get_address(m, address); fraddr_to_str(address, data + offset); } diff --git a/testing/tox_sync.c b/testing/tox_sync.c index ce5d9578..c00189aa 100644 --- a/testing/tox_sync.c +++ b/testing/tox_sync.c @@ -228,7 +228,7 @@ int main(int argc, char *argv[]) } uint8_t address[TOX_FRIEND_ADDRESS_SIZE]; - tox_add_address(tox, address); + tox_get_address(tox, address); uint32_t i; for (i = 0; i < TOX_FRIEND_ADDRESS_SIZE; i++) { 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; * Format: [client_id (32 bytes)][nospam number (4 bytes)][checksum (2 bytes)] * */ -void tox_add_address(Tox *tox, uint8_t *address) +void tox_get_address(Tox *tox, uint8_t *address) { Messenger *m = tox; 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; /* return FRIEND_ADDRESS_SIZE byte address to give to others. * format: [client_id (32 bytes)][nospam number (4 bytes)][checksum (2 bytes)] */ -void tox_add_address(Tox *tox, uint8_t *address); +void tox_get_address(Tox *tox, uint8_t *address); /* Add a friend. * Set the data that will be sent along with friend request.