summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/include/axutil_config.h2
-rw-r--r--util/src/network_handler.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/util/include/axutil_config.h b/util/include/axutil_config.h
index a35c0bd..01f7195 100644
--- a/util/include/axutil_config.h
+++ b/util/include/axutil_config.h
@@ -28,7 +28,9 @@
#undef PACKAGE_VERSION
#undef VERSION
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
/* undef unwated cnfig macros to avoid conflicts with APR macros */
#undef PACKAGE
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));