From bddcb92d1f0f76d21c4469b1667c8199c9fab126 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 21 Feb 2009 02:48:11 +0100 Subject: libxtables: inline and remove unused OPTION_OFFSET macro Signed-off-by: Jan Engelhardt --- include/xtables.h.in | 1 - xtables.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/xtables.h.in b/include/xtables.h.in index b5f1af27..c4d2b922 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -235,7 +235,6 @@ int xtables_check_inverse(const char option[], int *invert, int *my_optind, int argc); extern struct xtables_globals *xt_params; #define exit_error xt_params->exit_err -#define OPTION_OFFSET 256 extern void xtables_param_act(unsigned int, const char *, ...); diff --git a/xtables.c b/xtables.c index 50cfced8..f3056735 100644 --- a/xtables.c +++ b/xtables.c @@ -96,7 +96,7 @@ struct option *xtables_merge_options(struct option *oldopts, for (num_old = 0; oldopts[num_old].name; num_old++) ; for (num_new = 0; newopts[num_new].name; num_new++) ; - xt_params->option_offset += OPTION_OFFSET; + xt_params->option_offset += 256; *option_offset = xt_params->option_offset; merge = malloc(sizeof(struct option) * (num_new + num_old + 1)); -- cgit v1.2.3