[iptables] libiptc: avoid compile warnings for iptc_insert_chain

Patrick McHardy netfilter-cvslog-bounces at lists.netfilter.org
Mon Mar 23 13:50:34 CET 2009


Gitweb:		http://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commit;h=7cd15e367cc81c839ef2ca061d201c46ca1deb7c
commit 7cd15e367cc81c839ef2ca061d201c46ca1deb7c
Author:     Christoph Paasch <christoph.paasch at gmail.com>
AuthorDate: Mon Mar 23 13:50:11 2009 +0100
Commit:     Patrick McHardy <kaber at trash.net>
CommitDate: Mon Mar 23 13:50:11 2009 +0100

    libiptc: avoid compile warnings for iptc_insert_chain
    
    iptc_insert_chain is too big to get inlined and so it generates
    a warning while compiling.
    
    Signed-off-by: Christoph Paasch <christoph.paasch at gmail.com>
    Signed-off-by: Patrick McHardy <kaber at trash.net>
       via  7cd15e367cc81c839ef2ca061d201c46ca1deb7c (commit)
      from  fbb5639c02218acfd84c4f25f134efecb564fee1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7cd15e367cc81c839ef2ca061d201c46ca1deb7c
Author: Christoph Paasch <christoph.paasch at gmail.com>
Date:   Mon Mar 23 13:50:11 2009 +0100

    libiptc: avoid compile warnings for iptc_insert_chain
    
    iptc_insert_chain is too big to get inlined and so it generates
    a warning while compiling.
    
    Signed-off-by: Christoph Paasch <christoph.paasch at gmail.com>
    Signed-off-by: Patrick McHardy <kaber at trash.net>

-----------------------------------------------------------------------

 libiptc/libiptc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
iptc_insert_chain is too big to get inlined and so it generates
a warning while compiling.

Signed-off-by: Christoph Paasch <christoph.paasch at gmail.com>
Signed-off-by: Patrick McHardy <kaber at trash.net>

diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c
index 544a5b2..c3d9bfc 100644
--- a/libiptc/libiptc.c
+++ b/libiptc/libiptc.c
@@ -841,7 +841,7 @@ static int __iptcc_p_del_policy(struct xtc_handle *h, unsigned int num)
 }
 
 /* alphabetically insert a chain into the list */
-static inline void iptc_insert_chain(struct xtc_handle *h, struct chain_head *c)
+static void iptc_insert_chain(struct xtc_handle *h, struct chain_head *c)
 {
 	struct chain_head *tmp;
 	struct list_head  *list_start_pos;



More information about the netfilter-cvslog mailing list