diff options
author | SilentSand <edb881@gmail.com> | 2013-07-26 04:02:17 -0400 |
---|---|---|
committer | SilentSand <edb881@gmail.com> | 2013-07-26 04:02:17 -0400 |
commit | 59b34e423beb75fcd3e3c8abc2c05fe60aca26bc (patch) | |
tree | 6d1686d86da385579e862d8c761be9b59db92a48 /core/friend_requests.c | |
parent | b9169ff1b2a4e1dd13ed40f3902d06ed020eefb7 (diff) |
Formatting.
Many stylistic changes, mostly formatting code more closely to the
coding style.
Diffstat (limited to 'core/friend_requests.c')
-rw-r--r-- | core/friend_requests.c | 3 |
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 | ||
26 | uint8_t self_public_key[crypto_box_PUBLICKEYBYTES]; | 26 | uint8_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 | |||
65 | static void (*handle_friendrequest)(uint8_t *, uint8_t *, uint16_t); | 63 | static void (*handle_friendrequest)(uint8_t *, uint8_t *, uint16_t); |
66 | static uint8_t handle_friendrequest_isset = 0; | 64 | static 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 | |||
76 | int friendreq_handlepacket(uint8_t * packet, uint32_t length, IP_Port source) | 73 | int friendreq_handlepacket(uint8_t * packet, uint32_t length, IP_Port source) |
77 | { | 74 | { |
78 | 75 | ||