From ddac6c5bc636003d664d25c08ea3fe176565096c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 1 Sep 2008 14:22:19 +0200 Subject: src: Update comments A number of comments are redundant, some outdated and others outright wrong in their own way. Remove and fixup. Signed-off-by: Jan Engelhardt Signed-off-by: Patrick McHardy --- extensions/libxt_length.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'extensions/libxt_length.c') diff --git a/extensions/libxt_length.c b/extensions/libxt_length.c index ec305ae4..c5c411e1 100644 --- a/extensions/libxt_length.c +++ b/extensions/libxt_length.c @@ -8,7 +8,6 @@ #include #include -/* Function which prints out usage message. */ static void length_help(void) { printf( @@ -59,8 +58,6 @@ parse_lengths(const char *s, struct xt_length_info *info) } -/* Function which parses command options; returns true if it - ate an option */ static int length_parse(int c, char **argv, int invert, unsigned int *flags, const void *entry, struct xt_entry_match **match) @@ -86,7 +83,6 @@ length_parse(int c, char **argv, int invert, unsigned int *flags, return 1; } -/* Final check; must have specified --length. */ static void length_check(unsigned int flags) { if (!flags) @@ -94,7 +90,6 @@ static void length_check(unsigned int flags) "length: You must specify `--length'"); } -/* Common match printing code. */ static void print_length(struct xt_length_info *info) { @@ -107,7 +102,6 @@ print_length(struct xt_length_info *info) printf("%u:%u ", info->min, info->max); } -/* Prints out the matchinfo. */ static void length_print(const void *ip, const struct xt_entry_match *match, int numeric) { @@ -115,7 +109,6 @@ length_print(const void *ip, const struct xt_entry_match *match, int numeric) print_length((struct xt_length_info *)match->data); } -/* Saves the union ipt_matchinfo in parsable form to stdout. */ static void length_save(const void *ip, const struct xt_entry_match *match) { printf("--length "); -- cgit v1.2.3