diff options
author | JamoBox <petewicken@gmail.com> | 2013-09-02 13:41:43 +0100 |
---|---|---|
committer | JamoBox <petewicken@gmail.com> | 2013-09-02 13:41:43 +0100 |
commit | 433cc9c8b255f62b912ae2b81d99838577ecf261 (patch) | |
tree | d6f952d2d3c96af0a14225f8dec5d95e9d8ffae7 /toxcore/friend_requests.c | |
parent | 925f63f49319bdfc69d29747e81f3c5bdea1eba5 (diff) |
Even more comment updates.
Diffstat (limited to 'toxcore/friend_requests.c')
-rw-r--r-- | toxcore/friend_requests.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/toxcore/friend_requests.c b/toxcore/friend_requests.c index 152cb188..6e98f18b 100644 --- a/toxcore/friend_requests.c +++ b/toxcore/friend_requests.c | |||
@@ -25,9 +25,10 @@ | |||
25 | 25 | ||
26 | /* Try to send a friend request to peer with public_key. | 26 | /* Try to send a friend request to peer with public_key. |
27 | * data is the data in the request and length is the length. | 27 | * data is the data in the request and length is the length. |
28 | * return -1 if failure. | 28 | * |
29 | * return 0 if it sent the friend request directly to the friend. | 29 | * return -1 if failure. |
30 | * return the number of peers it was routed through if it did not send it directly. | 30 | * return 0 if it sent the friend request directly to the friend. |
31 | * return the number of peers it was routed through if it did not send it directly. | ||
31 | */ | 32 | */ |
32 | int send_friendrequest(DHT *dht, uint8_t *public_key, uint32_t nospam_num, uint8_t *data, uint32_t length) | 33 | int send_friendrequest(DHT *dht, uint8_t *public_key, uint32_t nospam_num, uint8_t *data, uint32_t length) |
33 | { | 34 | { |
@@ -98,8 +99,9 @@ static void addto_receivedlist(Friend_Requests *fr, uint8_t *client_id) | |||
98 | } | 99 | } |
99 | 100 | ||
100 | /* Check if a friend request was already received. | 101 | /* Check if a friend request was already received. |
101 | * return 0 if it did not. | 102 | * |
102 | * return 1 if it did. | 103 | * return 0 if it did not. |
104 | * return 1 if it did. | ||
103 | */ | 105 | */ |
104 | static int request_received(Friend_Requests *fr, uint8_t *client_id) | 106 | static int request_received(Friend_Requests *fr, uint8_t *client_id) |
105 | { | 107 | { |