diff -ruN a/include/syncmgr.h b/include/syncmgr.h
--- a/include/syncmgr.h	2023-12-26 23:43:03.000000000 +0000
+++ b/include/syncmgr.h	2025-07-30 17:38:33.930000000 +0000
@@ -73,7 +73,7 @@
 
 int send_startup_sync(peer_t *peer, startup_sync_t *sync);
 int send_oper_sync(peer_t *peer, oper_sync_t *sync);
-int force_peer_aggregate();
+int force_peer_aggregate(peer_t *peer);
 void send_filters(peer_t *peer);
 
 void *recv_syncs(void *arg);
diff -ruN a/include/thread_pool.h b/include/thread_pool.h
--- a/include/thread_pool.h	2025-07-30 17:19:45.060000000 +0000
+++ b/include/thread_pool.h	2025-07-30 17:50:05.690000000 +0000
@@ -68,7 +70,7 @@
 typedef struct
 {
 	void *state;
-	int (*cleanup) ();
+	int (*cleanup) (void *state);
 	watchdog_t watchdog;
 } thread_ctx_t;
 
