diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-24 20:30:30 +0200 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-24 20:30:30 +0200 |
| commit | 96fa1b7327b35cdeca6c77f2fdde906cabc437d8 (patch) | |
| tree | 788e6989072decc9a1d6f4c85ec1c95cd49e4d3d /ot_udp.c | |
| parent | 6815f7a03324b5326e7b7d155c93caa1af5ea356 (diff) | |
Replace custom int64 with its standardized int64_t type
Diffstat (limited to 'ot_udp.c')
| -rw-r--r-- | ot_udp.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -71,7 +71,7 @@ static void udp_make_connectionid(uint32_t connid[2], const ot_ip6 remoteip, int | |||
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | /* UDP implementation according to http://xbtt.sourceforge.net/udp_tracker_protocol.html */ | 73 | /* UDP implementation according to http://xbtt.sourceforge.net/udp_tracker_protocol.html */ |
| 74 | int handle_udp6(int64 serversocket, struct ot_workstruct *ws) { | 74 | int handle_udp6(int64_t serversocket, struct ot_workstruct *ws) { |
| 75 | ot_ip6 remoteip; | 75 | ot_ip6 remoteip; |
| 76 | uint32_t *inpacket = (uint32_t *)ws->inbuf; | 76 | uint32_t *inpacket = (uint32_t *)ws->inbuf; |
| 77 | uint32_t *outpacket = (uint32_t *)ws->outbuf; | 77 | uint32_t *outpacket = (uint32_t *)ws->outbuf; |
| @@ -203,7 +203,7 @@ int handle_udp6(int64 serversocket, struct ot_workstruct *ws) { | |||
| 203 | } | 203 | } |
| 204 | 204 | ||
| 205 | static void *udp_worker(void *args) { | 205 | static void *udp_worker(void *args) { |
| 206 | int64 sock = (int64)args; | 206 | int64_t sock = (int64_t)args; |
| 207 | struct ot_workstruct ws; | 207 | struct ot_workstruct ws; |
| 208 | memset(&ws, 0, sizeof(ws)); | 208 | memset(&ws, 0, sizeof(ws)); |
| 209 | 209 | ||
| @@ -229,7 +229,7 @@ static void *udp_worker(void *args) { | |||
| 229 | return NULL; | 229 | return NULL; |
| 230 | } | 230 | } |
| 231 | 231 | ||
| 232 | void udp_init(int64 sock, unsigned int worker_count) { | 232 | void udp_init(int64_t sock, unsigned int worker_count) { |
| 233 | pthread_t thread_id; | 233 | pthread_t thread_id; |
| 234 | if (!g_rijndael_round_key[0]) | 234 | if (!g_rijndael_round_key[0]) |
| 235 | udp_generate_rijndael_round_key(); | 235 | udp_generate_rijndael_round_key(); |
