From 82b8927af7f68bbfbf83bbb5ffbc747de7bc288f Mon Sep 17 00:00:00 2001 From: pete Date: Thu, 29 Aug 2013 22:17:51 +0100 Subject: Correct a lot of the grammar and spelling. Also spent a few hours fixing the comments so they follow a standard. --- toxcore/friend_requests.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'toxcore/friend_requests.h') diff --git a/toxcore/friend_requests.h b/toxcore/friend_requests.h index 2ebd557b..58572488 100644 --- a/toxcore/friend_requests.h +++ b/toxcore/friend_requests.h @@ -37,8 +37,9 @@ typedef struct { uint8_t handle_friendrequest_isset; void *handle_friendrequest_userdata; - /*NOTE: the following is just a temporary fix for the multiple friend requests received at the same time problem - TODO: Make this better (This will most likely tie in with the way we will handle spam.)*/ +/* NOTE: The following is just a temporary fix for the multiple friend requests received at the same time problem. + * TODO: Make this better (This will most likely tie in with the way we will handle spam.) + */ #define MAX_RECEIVED_STORED 32 @@ -46,21 +47,21 @@ typedef struct { uint16_t received_requests_index; } Friend_Requests; -/* Try to send a friendrequest to peer with public_key - data is the data in the request and length is the length. */ -int send_friendrequest(DHT *dht, uint8_t *public_key, uint32_t nospam_num, uint8_t *data, uint32_t length); -/* - * Set and get the nospam variable used to prevent one type of friend request spam +/* Try to send a friendrequest to peer with public_key. + * data is the data in the request and length is the length. */ +int send_friendrequest(DHT *dht, uint8_t *public_key, uint32_t nospam_num, uint8_t *data, uint32_t length); +/* Set and get the nospam variable used to prevent one type of friend request spam. */ void set_nospam(Friend_Requests *fr, uint32_t num); uint32_t get_nospam(Friend_Requests *fr); -/* set the function that will be executed when a friend request for us is received. - function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) */ +/* Set the function that will be executed when a friend request for us is received. + * Function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) + */ void callback_friendrequest(Friend_Requests *fr, void (*function)(uint8_t *, uint8_t *, uint16_t, void *), void *userdata); -/* sets up friendreq packet handlers */ +/* Sets up friendreq packet handlers. */ void friendreq_init(Friend_Requests *fr, Net_Crypto *c); #ifdef __cplusplus -- cgit v1.2.3