summaryrefslogtreecommitdiffstats
path: root/ip6tables.c
diff options
context:
space:
mode:
Diffstat (limited to 'ip6tables.c')
-rw-r--r--ip6tables.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/ip6tables.c b/ip6tables.c
index 6b2766b..a096b79 100644
--- a/ip6tables.c
+++ b/ip6tables.c
@@ -36,6 +36,7 @@
#include <stdarg.h>
#include <limits.h>
#include <ip6tables.h>
+#include <xtables.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <fcntl.h>
@@ -494,30 +495,6 @@ check_inverse(const char option[], int *invert, int *optind, int argc)
return FALSE;
}
-static void *
-fw_calloc(size_t count, size_t size)
-{
- void *p;
-
- if ((p = calloc(count, size)) == NULL) {
- perror("ip6tables: calloc failed");
- exit(1);
- }
- return p;
-}
-
-static void *
-fw_malloc(size_t size)
-{
- void *p;
-
- if ((p = malloc(size)) == NULL) {
- perror("ip6tables: malloc failed");
- exit(1);
- }
- return p;
-}
-
static char *
addr_to_numeric(const struct in6_addr *addrp)
{