summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-13 18:20:58 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-13 18:20:58 -0400
commit11a2bf0878404c8c6d8c01424218da49237b880a (patch)
treee4b75b110813be2b675a4527074cf28afec7381f
parent3a95d5da41a0b1f77180dc71871df454d900fd61 (diff)
Fixed 2 small mistakes present in the last pull request.
-rw-r--r--core/Messenger.c2
-rw-r--r--core/Messenger.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/Messenger.c b/core/Messenger.c
index 65a73876..cc22a7f5 100644
--- a/core/Messenger.c
+++ b/core/Messenger.c
@@ -72,7 +72,7 @@ int getfriend_id(uint8_t * client_id)
72//return -1 if failure. 72//return -1 if failure.
73int getclient_id(int friend_id, uint8_t * client_id) 73int getclient_id(int friend_id, uint8_t * client_id)
74{ 74{
75 if(friendnumber >= numfriends || friendnumber < 0) 75 if(friend_id >= numfriends || friend_id < 0)
76 { 76 {
77 return -1; 77 return -1;
78 } 78 }
diff --git a/core/Messenger.h b/core/Messenger.h
index 679df989..95d1d28e 100644
--- a/core/Messenger.h
+++ b/core/Messenger.h
@@ -53,7 +53,7 @@ int getfriend_id(uint8_t * client_id);
53//make sure that client_id is of size CLIENT_ID_SIZE. 53//make sure that client_id is of size CLIENT_ID_SIZE.
54//returns 0 if success 54//returns 0 if success
55//return -1 if failure. 55//return -1 if failure.
56int getclient_id(int friend_id, uint8_t * client_id) 56int getclient_id(int friend_id, uint8_t * client_id);
57 57
58//remove a friend 58//remove a friend
59int m_delfriend(int friendnumber); 59int m_delfriend(int friendnumber);