summaryrefslogtreecommitdiff
path: root/core/friend_requests.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/friend_requests.c')
-rw-r--r--core/friend_requests.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/friend_requests.c b/core/friend_requests.c
index ba3f7535..d24dd4b4 100644
--- a/core/friend_requests.c
+++ b/core/friend_requests.c
@@ -25,7 +25,6 @@
25 25
26uint8_t self_public_key[crypto_box_PUBLICKEYBYTES]; 26uint8_t self_public_key[crypto_box_PUBLICKEYBYTES];
27 27
28
29/* Try to send a friendrequest to peer with public_key 28/* Try to send a friendrequest to peer with public_key
30 data is the data in the request and length is the length. 29 data is the data in the request and length is the length.
31 return -1 if failure. 30 return -1 if failure.
@@ -61,7 +60,6 @@ int send_friendrequest(uint8_t * public_key, uint8_t * data, uint32_t length)
61 return num; 60 return num;
62} 61}
63 62
64
65static void (*handle_friendrequest)(uint8_t *, uint8_t *, uint16_t); 63static void (*handle_friendrequest)(uint8_t *, uint8_t *, uint16_t);
66static uint8_t handle_friendrequest_isset = 0; 64static uint8_t handle_friendrequest_isset = 0;
67 65
@@ -72,7 +70,6 @@ void callback_friendrequest(void (*function)(uint8_t *, uint8_t *, uint16_t))
72 handle_friendrequest_isset = 1; 70 handle_friendrequest_isset = 1;
73} 71}
74 72
75
76int friendreq_handlepacket(uint8_t * packet, uint32_t length, IP_Port source) 73int friendreq_handlepacket(uint8_t * packet, uint32_t length, IP_Port source)
77{ 74{
78 75