summaryrefslogtreecommitdiffstats
path: root/src/parse.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-01-15 13:10:23 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-01-15 13:10:23 +0000
commita944cf07400e78ac17f559dd41a670427648c258 (patch)
tree6c65a226050854e4b86db13f53f5b40d2527c108 /src/parse.c
parent369a532132e9c9f19e0dd07d2e2c554c92c70f67 (diff)
Max Kellermann <max@duempel.org>:
set the return type of the parse functions to "void"
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/parse.c b/src/parse.c
index 0650995..c8a9704 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -20,27 +20,27 @@
#include <libnetfilter_conntrack/libnetfilter_conntrack.h>
#include "network.h"
-static int parse_u8(struct nf_conntrack *ct, int attr, void *data)
+static void parse_u8(struct nf_conntrack *ct, int attr, void *data)
{
u_int8_t *value = (u_int8_t *) data;
nfct_set_attr_u8(ct, attr, *value);
}
-static int parse_u16(struct nf_conntrack *ct, int attr, void *data)
+static void parse_u16(struct nf_conntrack *ct, int attr, void *data)
{
u_int16_t *value = (u_int16_t *) data;
nfct_set_attr_u16(ct, attr, ntohs(*value));
}
-static int parse_u32(struct nf_conntrack *ct, int attr, void *data)
+static void parse_u32(struct nf_conntrack *ct, int attr, void *data)
{
u_int32_t *value = (u_int32_t *) data;
nfct_set_attr_u32(ct, attr, ntohl(*value));
}
-typedef int (*parse)(struct nf_conntrack *ct, int attr, void *data);
+typedef void (*parse)(struct nf_conntrack *ct, int attr, void *data);
-parse h[ATTR_MAX] = {
+static parse h[ATTR_MAX] = {
[ATTR_IPV4_SRC] = parse_u32,
[ATTR_IPV4_DST] = parse_u32,
[ATTR_L3PROTO] = parse_u8,