]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
src: remove unnecessary inline in _snprintf functions
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 9 May 2016 21:03:25 +0000 (23:03 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 9 May 2016 21:10:08 +0000 (23:10 +0200)
These functions are passed as parameter, so we basically get nothing
with this.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/chain.c
src/gen.c
src/rule.c
src/set.c
src/set_elem.c
src/table.c

index c988bddcacf9685b216a2f8ee585052cd008f7d3..16f764ff9fbb053654f223086a8b46e770c785ff 100644 (file)
@@ -936,9 +936,8 @@ int nftnl_chain_snprintf(char *buf, size_t size, const struct nftnl_chain *c,
 }
 EXPORT_SYMBOL_ALIAS(nftnl_chain_snprintf, nft_chain_snprintf);
 
-static inline int nftnl_chain_do_snprintf(char *buf, size_t size, const void *c,
-                                         uint32_t cmd, uint32_t type,
-                                         uint32_t flags)
+static int nftnl_chain_do_snprintf(char *buf, size_t size, const void *c,
+                                  uint32_t cmd, uint32_t type, uint32_t flags)
 {
        return nftnl_chain_snprintf(buf, size, c, type, flags);
 }
index 1f94603d4c39a7d48d49464eea9dcd36f9880b1d..115a1058ba61e320e4d3a42d9d9e6b9bc4e1c5f8 100644 (file)
--- a/src/gen.c
+++ b/src/gen.c
@@ -194,9 +194,8 @@ int nftnl_gen_snprintf(char *buf, size_t size, const struct nftnl_gen *gen,
 }
 EXPORT_SYMBOL_ALIAS(nftnl_gen_snprintf, nft_gen_snprintf);
 
-static inline int nftnl_gen_do_snprintf(char *buf, size_t size, const void *gen,
-                                       uint32_t cmd, uint32_t type,
-                                       uint32_t flags)
+static int nftnl_gen_do_snprintf(char *buf, size_t size, const void *gen,
+                                uint32_t cmd, uint32_t type, uint32_t flags)
 {
        return nftnl_gen_snprintf(buf, size, gen, type, flags);
 }
index 31c06580a0a2cca45adf6b17c43e5b534fe84d7b..c299548c4dc6989018303e20a5ffe27bd3b6cbb2 100644 (file)
@@ -978,9 +978,8 @@ int nftnl_rule_snprintf(char *buf, size_t size, const struct nftnl_rule *r,
 }
 EXPORT_SYMBOL_ALIAS(nftnl_rule_snprintf, nft_rule_snprintf);
 
-static inline int nftnl_rule_do_snprintf(char *buf, size_t size, const void *r,
-                                        uint32_t cmd, uint32_t type,
-                                        uint32_t flags)
+static int nftnl_rule_do_snprintf(char *buf, size_t size, const void *r,
+                                 uint32_t cmd, uint32_t type, uint32_t flags)
 {
        return nftnl_rule_snprintf(buf, size, r, type, flags);
 }
index 7a92c10ef7230bd48f33948848a8c1d51fcfb29b..dbea93b5162bd75667e7cbdc066beef471899f9f 100644 (file)
--- a/src/set.c
+++ b/src/set.c
@@ -1041,9 +1041,8 @@ int nftnl_set_snprintf(char *buf, size_t size, const struct nftnl_set *s,
 }
 EXPORT_SYMBOL_ALIAS(nftnl_set_snprintf, nft_set_snprintf);
 
-static inline int nftnl_set_do_snprintf(char *buf, size_t size, const void *s,
-                                       uint32_t cmd, uint32_t type,
-                                       uint32_t flags)
+static int nftnl_set_do_snprintf(char *buf, size_t size, const void *s,
+                                uint32_t cmd, uint32_t type, uint32_t flags)
 {
        return nftnl_set_snprintf(buf, size, s, type, flags);
 }
index d8c475875cb8cb3fc25c4e5a6a5e2bf2d95953b0..353f21eb9134794108d741553475bdeaeaa68f82 100644 (file)
@@ -777,9 +777,9 @@ int nftnl_set_elem_snprintf(char *buf, size_t size,
 }
 EXPORT_SYMBOL_ALIAS(nftnl_set_elem_snprintf, nft_set_elem_snprintf);
 
-static inline int nftnl_set_elem_do_snprintf(char *buf, size_t size,
-                                            const void *e, uint32_t cmd,
-                                            uint32_t type, uint32_t flags)
+static int nftnl_set_elem_do_snprintf(char *buf, size_t size, const void *e,
+                                     uint32_t cmd, uint32_t type,
+                                     uint32_t flags)
 {
        return nftnl_set_elem_snprintf(buf, size, e, type, flags);
 }
index b7c0045e891867a1e2f3f62fdd57aa953af6e21d..42fe49f8e0028834a355576970840f9426957e47 100644 (file)
@@ -457,9 +457,8 @@ int nftnl_table_snprintf(char *buf, size_t size, const struct nftnl_table *t,
 }
 EXPORT_SYMBOL_ALIAS(nftnl_table_snprintf, nft_table_snprintf);
 
-static inline int nftnl_table_do_snprintf(char *buf, size_t size, const void *t,
-                                         uint32_t cmd, uint32_t type,
-                                         uint32_t flags)
+static int nftnl_table_do_snprintf(char *buf, size_t size, const void *t,
+                                  uint32_t cmd, uint32_t type, uint32_t flags)
 {
        return nftnl_table_snprintf(buf, size, t, type, flags);
 }