From 96fa1b7327b35cdeca6c77f2fdde906cabc437d8 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 24 Oct 2026 20:30:30 +0200 Subject: Replace custom int64 with its standardized int64_t type --- ot_udp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ot_udp.c') diff --git a/ot_udp.c b/ot_udp.c index d17f3ff..8e056db 100644 --- a/ot_udp.c +++ b/ot_udp.c @@ -71,7 +71,7 @@ static void udp_make_connectionid(uint32_t connid[2], const ot_ip6 remoteip, int } /* UDP implementation according to http://xbtt.sourceforge.net/udp_tracker_protocol.html */ -int handle_udp6(int64 serversocket, struct ot_workstruct *ws) { +int handle_udp6(int64_t serversocket, struct ot_workstruct *ws) { ot_ip6 remoteip; uint32_t *inpacket = (uint32_t *)ws->inbuf; uint32_t *outpacket = (uint32_t *)ws->outbuf; @@ -203,7 +203,7 @@ int handle_udp6(int64 serversocket, struct ot_workstruct *ws) { } static void *udp_worker(void *args) { - int64 sock = (int64)args; + int64_t sock = (int64_t)args; struct ot_workstruct ws; memset(&ws, 0, sizeof(ws)); @@ -229,7 +229,7 @@ static void *udp_worker(void *args) { return NULL; } -void udp_init(int64 sock, unsigned int worker_count) { +void udp_init(int64_t sock, unsigned int worker_count) { pthread_t thread_id; if (!g_rijndael_round_key[0]) udp_generate_rijndael_round_key(); -- cgit v1.3