diff options
-rw-r--r-- | auto_tests/toxav_basic_test.c | 2 | ||||
-rw-r--r-- | toxcore/tox.c | 2 | ||||
-rw-r--r-- | toxcore/tox.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/auto_tests/toxav_basic_test.c b/auto_tests/toxav_basic_test.c index c35af270..ce3185de 100644 --- a/auto_tests/toxav_basic_test.c +++ b/auto_tests/toxav_basic_test.c | |||
@@ -50,7 +50,7 @@ typedef struct _Status { | |||
50 | /* My default settings */ | 50 | /* My default settings */ |
51 | static ToxAvCodecSettings muhcaps; | 51 | static ToxAvCodecSettings muhcaps; |
52 | 52 | ||
53 | void accept_friend_request(Tox *m, uint8_t *public_key, uint8_t *data, uint16_t length, void *userdata) | 53 | void accept_friend_request(Tox *m, const uint8_t *public_key, const uint8_t *data, uint16_t length, void *userdata) |
54 | { | 54 | { |
55 | if (length == 7 && memcmp("gentoo", data, 7) == 0) { | 55 | if (length == 7 && memcmp("gentoo", data, 7) == 0) { |
56 | tox_add_friend_norequest(m, public_key); | 56 | tox_add_friend_norequest(m, public_key); |
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 | */ |
75 | int32_t tox_add_friend_norequest(Tox *tox, uint8_t *client_id) | 75 | int32_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 | */ |
110 | int32_t tox_add_friend_norequest(Tox *tox, uint8_t *client_id); | 110 | int32_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 */ |