summaryrefslogtreecommitdiff
path: root/toxav/bwcontroller.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/bwcontroller.c')
-rw-r--r--toxav/bwcontroller.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxav/bwcontroller.c b/toxav/bwcontroller.c
index 9a778291..2af8eee8 100644
--- a/toxav/bwcontroller.c
+++ b/toxav/bwcontroller.c
@@ -120,7 +120,7 @@ void bwc_add_recv(BWController *bwc, uint32_t recv_bytes)
120 send_update(bwc); 120 send_update(bwc);
121} 121}
122 122
123void send_update(BWController *bwc) 123static void send_update(BWController *bwc)
124{ 124{
125 if (bwc->packet_loss_counted_cycles > BWC_AVG_LOSS_OVER_CYCLES_COUNT && 125 if (bwc->packet_loss_counted_cycles > BWC_AVG_LOSS_OVER_CYCLES_COUNT &&
126 current_time_monotonic(bwc->m->mono_time) - bwc->cycle.last_sent_timestamp > BWC_SEND_INTERVAL_MS) { 126 current_time_monotonic(bwc->m->mono_time) - bwc->cycle.last_sent_timestamp > BWC_SEND_INTERVAL_MS) {
@@ -180,7 +180,7 @@ static int on_update(BWController *bwc, const struct BWCMessage *msg)
180 return 0; 180 return 0;
181} 181}
182 182
183int bwc_handle_data(Messenger *m, uint32_t friendnumber, const uint8_t *data, uint16_t length, void *object) 183static int bwc_handle_data(Messenger *m, uint32_t friendnumber, const uint8_t *data, uint16_t length, void *object)
184{ 184{
185 if (length - 1 != sizeof(struct BWCMessage)) { 185 if (length - 1 != sizeof(struct BWCMessage)) {
186 return -1; 186 return -1;