diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-02-21 02:48:11 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-02-21 02:48:11 +0100 |
commit | bddcb92d1f0f76d21c4469b1667c8199c9fab126 (patch) | |
tree | f92185919d71748b2b68f36c33fe2a8c41105be6 | |
parent | 1791a45b279db742d6de35ea8dc1ad9dda4acb73 (diff) |
libxtables: inline and remove unused OPTION_OFFSET macro
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r-- | include/xtables.h.in | 1 | ||||
-rw-r--r-- | xtables.c | 2 |
2 files changed, 1 insertions, 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 *, ...); @@ -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)); |