mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed 2 small mistakes present in the last pull request.
This commit is contained in:
parent
3a95d5da41
commit
11a2bf0878
|
@ -72,7 +72,7 @@ int getfriend_id(uint8_t * client_id)
|
|||
//return -1 if failure.
|
||||
int getclient_id(int friend_id, uint8_t * client_id)
|
||||
{
|
||||
if(friendnumber >= numfriends || friendnumber < 0)
|
||||
if(friend_id >= numfriends || friend_id < 0)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ int getfriend_id(uint8_t * client_id);
|
|||
//make sure that client_id is of size CLIENT_ID_SIZE.
|
||||
//returns 0 if success
|
||||
//return -1 if failure.
|
||||
int getclient_id(int friend_id, uint8_t * client_id)
|
||||
int getclient_id(int friend_id, uint8_t * client_id);
|
||||
|
||||
//remove a friend
|
||||
int m_delfriend(int friendnumber);
|
||||
|
|
Loading…
Reference in New Issue
Block a user