From: Florian Forster Date: Sat, 26 Sep 2009 08:48:50 +0000 (+0200) Subject: libiptc: Comment out two unused static functions. X-Git-Tag: collectd-4.7.4~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fdba679afa5681557916095e393adcbecacbdc61;p=collectd.git libiptc: Comment out two unused static functions. Thanks to Sven Trenkel for noticing. --- diff --git a/src/owniptc/libiptc.c b/src/owniptc/libiptc.c index f7a6640f..5e5fde08 100644 --- a/src/owniptc/libiptc.c +++ b/src/owniptc/libiptc.c @@ -1489,6 +1489,7 @@ TC_NEXT_RULE(const STRUCT_ENTRY *prev, TC_HANDLE_T *handle) } /* How many rules in this chain? */ +#if 0 static unsigned int TC_NUM_RULES(const char *chain, TC_HANDLE_T *handle) { @@ -1504,7 +1505,9 @@ TC_NUM_RULES(const char *chain, TC_HANDLE_T *handle) return c->num_rules; } +#endif +#if 0 static const STRUCT_ENTRY * TC_GET_RULE(const char *chain, unsigned int n, TC_HANDLE_T *handle) { @@ -1526,6 +1529,7 @@ TC_GET_RULE(const char *chain, unsigned int n, TC_HANDLE_T *handle) return NULL; return r->entry; } +#endif /* Returns a pointer to the target name of this position. */ static const char *standard_target_map(int verdict)