summaryrefslogtreecommitdiff
path: root/core/Messenger.c
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 /core/Messenger.c
parent3a95d5da41a0b1f77180dc71871df454d900fd61 (diff)
Fixed 2 small mistakes present in the last pull request.
Diffstat (limited to 'core/Messenger.c')
-rw-r--r--core/Messenger.c2
1 files changed, 1 insertions, 1 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 }