Fixed some warnings.

This commit is contained in:
irungentoo
2014-06-10 18:51:40 -04:00
parent 07936960df
commit 2fa8815a85
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ typedef struct _Status {
/* My default settings */
static ToxAvCodecSettings muhcaps;
void accept_friend_request(Tox *m, uint8_t *public_key, uint8_t *data, uint16_t length, void *userdata)
void accept_friend_request(Tox *m, const uint8_t *public_key, const uint8_t *data, uint16_t length, void *userdata)
{
if (length == 7 && memcmp("gentoo", data, 7) == 0) {
tox_add_friend_norequest(m, public_key);
+1 -1
View File
@@ -72,7 +72,7 @@ int32_t tox_add_friend(Tox *tox, uint8_t *address, uint8_t *data, uint16_t lengt
* return the friend number if success.
* return -1 if failure.
*/
int32_t tox_add_friend_norequest(Tox *tox, uint8_t *client_id)
int32_t tox_add_friend_norequest(Tox *tox, const uint8_t *client_id)
{
Messenger *m = tox;
return m_addfriend_norequest(m, client_id);
+1 -1
View File
@@ -107,7 +107,7 @@ int32_t tox_add_friend(Tox *tox, uint8_t *address, uint8_t *data, uint16_t lengt
* return the friend number if success.
* return -1 if failure.
*/
int32_t tox_add_friend_norequest(Tox *tox, uint8_t *client_id);
int32_t tox_add_friend_norequest(Tox *tox, const uint8_t *client_id);
/* return the friend number associated to that client id.
return -1 if no such friend */