summaryrefslogtreecommitdiffstats
path: root/util/src/network_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/src/network_handler.c')
-rw-r--r--util/src/network_handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/src/network_handler.c b/util/src/network_handler.c
index a8d154e..04e6ea6 100644
--- a/util/src/network_handler.c
+++ b/util/src/network_handler.c
@@ -435,7 +435,7 @@ axutil_network_handler_read_dgram(
{
struct sockaddr_in sender_address;
int received = 0;
- unsigned int sender_address_size = sizeof(sender_address);
+ int sender_address_size = sizeof(sender_address);
received = recvfrom(sock, buffer, *buf_len, 0, (struct sockaddr *)&sender_address,
&sender_address_size);
@@ -481,7 +481,7 @@ axutil_network_handler_send_dgram(
struct sockaddr_in recv_addr, source_addr;
int send_bytes = 0;
unsigned int recv_addr_size = 0;
- unsigned int source_addr_size = sizeof(source_addr);
+ int source_addr_size = sizeof(source_addr);
recv_addr_size = sizeof(recv_addr);
memset(&recv_addr, 0, sizeof(recv_addr));