summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/tox.c2
-rw-r--r--toxcore/tox.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c
index 008440a4..79e4c042 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -72,7 +72,7 @@ int32_t tox_add_friend(Tox *tox, uint8_t *address, uint8_t *data, uint16_t lengt
72 * return the friend number if success. 72 * return the friend number if success.
73 * return -1 if failure. 73 * return -1 if failure.
74 */ 74 */
75int32_t tox_add_friend_norequest(Tox *tox, uint8_t *client_id) 75int32_t tox_add_friend_norequest(Tox *tox, const uint8_t *client_id)
76{ 76{
77 Messenger *m = tox; 77 Messenger *m = tox;
78 return m_addfriend_norequest(m, client_id); 78 return m_addfriend_norequest(m, client_id);
diff --git a/toxcore/tox.h b/toxcore/tox.h
index f0390fe1..afa502f5 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -107,7 +107,7 @@ int32_t tox_add_friend(Tox *tox, uint8_t *address, uint8_t *data, uint16_t lengt
107 * return the friend number if success. 107 * return the friend number if success.
108 * return -1 if failure. 108 * return -1 if failure.
109 */ 109 */
110int32_t tox_add_friend_norequest(Tox *tox, uint8_t *client_id); 110int32_t tox_add_friend_norequest(Tox *tox, const uint8_t *client_id);
111 111
112/* return the friend number associated to that client id. 112/* return the friend number associated to that client id.
113 return -1 if no such friend */ 113 return -1 if no such friend */