From 280344488f09ff29deb052dfa94ed74668c00b18 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Fri, 23 Oct 2026 22:10:58 +0200 Subject: Remove last byte_diff and provide more prototypes --- ot_livesync.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ot_livesync.c') diff --git a/ot_livesync.c b/ot_livesync.c index f620592..efba4d7 100644 --- a/ot_livesync.c +++ b/ot_livesync.c @@ -57,7 +57,7 @@ static sync_buffer g_v6_buf; static sync_buffer g_v4_buf; static pthread_t thread_id; -void livesync_init() { +void livesync_init(void) { if (g_socket_in == -1) exerr("No socket address for live sync specified."); @@ -78,7 +78,7 @@ void livesync_init() { pthread_create(&thread_id, NULL, livesync_worker, NULL); } -void livesync_deinit() { +void livesync_deinit(void) { if (g_socket_in != -1) close(g_socket_in); if (g_socket_out != -1) @@ -167,7 +167,7 @@ static void livesync_handle_peersync(struct ot_workstruct *ws, size_t peer_size) /* Tickle the live sync module from time to time, so no events get stuck when there's not enough traffic to fill udp packets fast enough */ -void livesync_ticker() { +void livesync_ticker(void) { /* livesync_issue_peersync sets g_next_packet_time */ pthread_mutex_lock(&g_outbuf_mutex); if (g_now_seconds > g_v6_buf.next_packet_time && g_v6_buf.fill > sizeof(g_tracker_id) + sizeof(uint32_t)) -- cgit v1.3