summaryrefslogtreecommitdiff
path: root/core/Lossless_UDP.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/Lossless_UDP.c')
-rw-r--r--core/Lossless_UDP.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/Lossless_UDP.c b/core/Lossless_UDP.c
index 8538f76c..3a289735 100644
--- a/core/Lossless_UDP.c
+++ b/core/Lossless_UDP.c
@@ -284,7 +284,7 @@ static int new_inconnection(IP_Port ip_port)
284 * Returns an integer corresponding to the next connection in our incoming connection list. 284 * Returns an integer corresponding to the next connection in our incoming connection list.
285 * Return -1 if there are no new incoming connections in the list. 285 * Return -1 if there are no new incoming connections in the list.
286 */ 286 */
287int incoming_connection() 287int incoming_connection(void)
288{ 288{
289 uint32_t i; 289 uint32_t i;
290 for (i = 0; i < MAX_CONNECTIONS; ++i) { 290 for (i = 0; i < MAX_CONNECTIONS; ++i) {
@@ -298,7 +298,7 @@ int incoming_connection()
298} 298}
299 299
300/* Try to free some memory from the connections array. */ 300/* Try to free some memory from the connections array. */
301static void free_connections() 301static void free_connections(void)
302{ 302{
303 uint32_t i; 303 uint32_t i;
304 for(i = connections_length; i != 0; --i) 304 for(i = connections_length; i != 0; --i)
@@ -793,7 +793,7 @@ int LosslessUDP_handlepacket(uint8_t *packet, uint32_t length, IP_Port source)
793 * Send handshake requests 793 * Send handshake requests
794 * handshake packets are sent at the same rate as SYNC packets 794 * handshake packets are sent at the same rate as SYNC packets
795 */ 795 */
796static void doNew() 796static void doNew(void)
797{ 797{
798 uint32_t i; 798 uint32_t i;
799 uint64_t temp_time = current_time(); 799 uint64_t temp_time = current_time();
@@ -817,7 +817,7 @@ static void doNew()
817 } 817 }
818} 818}
819 819
820static void doSYNC() 820static void doSYNC(void)
821{ 821{
822 uint32_t i; 822 uint32_t i;
823 uint64_t temp_time = current_time(); 823 uint64_t temp_time = current_time();
@@ -830,7 +830,7 @@ static void doSYNC()
830 } 830 }
831} 831}
832 832
833static void doData() 833static void doData(void)
834{ 834{
835 uint32_t i; 835 uint32_t i;
836 uint64_t j; 836 uint64_t j;
@@ -851,7 +851,7 @@ static void doData()
851 * 851 *
852 * TODO: flow control. 852 * TODO: flow control.
853 */ 853 */
854static void adjustRates() 854static void adjustRates(void)
855{ 855{
856 uint32_t i; 856 uint32_t i;
857 uint64_t temp_time = current_time(); 857 uint64_t temp_time = current_time();
@@ -871,7 +871,7 @@ static void adjustRates()
871} 871}
872 872
873/* Call this function a couple times per second It's the main loop. */ 873/* Call this function a couple times per second It's the main loop. */
874void doLossless_UDP() 874void doLossless_UDP(void)
875{ 875{
876 doNew(); 876 doNew();
877 doSYNC(); 877 doSYNC();