@@ -32,7 +32,6 @@
#include <time.h>
#include <stdint.h>
#include <limits.h>
-#include <inttypes.h>
#include <misc/balloc.h>
#include <misc/compare.h>
@@ -60,7 +60,7 @@ static char * concat_strings (int num, ...)
va_end(ap);
// allocate memory
- char *res_str = malloc(sum + 1);
+ char *res_str = (char *)malloc(sum + 1);
if (!res_str) {
return NULL;
}
@@ -35,7 +35,6 @@
#define BADVPN_MISC_IPADDR6_H
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -44,6 +43,7 @@
#include <misc/byteorder.h>
#include <misc/parse_number.h>
#include <misc/find_char.h>
+#include <misc/print_macros.h>
struct ipv6_addr {
uint8_t bytes[16];