Fixed 2 small mistakes present in the last pull request.

This commit is contained in:
irungentoo 2013-07-13 18:20:58 -04:00
parent 3a95d5da41
commit 11a2bf0878
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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);