diff options
author | Yasuyuki KOZAKAI <yasuyuki@netfilter.org> | 2007-07-24 05:45:33 +0000 |
---|---|---|
committer | Yasuyuki KOZAKAI <yasuyuki@netfilter.org> | 2007-07-24 05:45:33 +0000 |
commit | 3dfa4488b032fc32aaf2470f48ac1fc3a534794f (patch) | |
tree | 52317cc3cc5562b3784b1a18e3d3e06ea09c1708 /ip6tables.c | |
parent | 5208806f2708f761e97e62550561e3164b541770 (diff) |
Moves common fw_malloc() and fw_calloc() to xtables.c
Diffstat (limited to 'ip6tables.c')
-rw-r--r-- | ip6tables.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/ip6tables.c b/ip6tables.c index 6b2766b7..a096b795 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) { |