mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed some warnings.
This commit is contained in:
parent
07936960df
commit
2fa8815a85
|
@ -50,7 +50,7 @@ typedef struct _Status {
|
||||||
/* My default settings */
|
/* My default settings */
|
||||||
static ToxAvCodecSettings muhcaps;
|
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) {
|
if (length == 7 && memcmp("gentoo", data, 7) == 0) {
|
||||||
tox_add_friend_norequest(m, public_key);
|
tox_add_friend_norequest(m, public_key);
|
||||||
|
|
|
@ -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 the friend number if success.
|
||||||
* return -1 if failure.
|
* 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;
|
Messenger *m = tox;
|
||||||
return m_addfriend_norequest(m, client_id);
|
return m_addfriend_norequest(m, client_id);
|
||||||
|
|
|
@ -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 the friend number if success.
|
||||||
* return -1 if failure.
|
* 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 the friend number associated to that client id.
|
||||||
return -1 if no such friend */
|
return -1 if no such friend */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user