diff options
author | Duncan Roe <duncan_roe@optusnet.com.au> | 2021-08-31 18:01:58 +1000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-09-06 12:01:40 +0200 |
commit | d083308d1743c1860c0845d55e9fc9672f7ce2f3 (patch) | |
tree | 7fe7c358025f22a194802a1d754dd9b44d153aa3 /src/libipulog_compat.c | |
parent | 7554070937f52c7f17b349ff4c4bb938ca20331f (diff) |
src: whitespace: Remove trailing whitespace and inconsistent indents
All .c and .h files now have no lines with trailing whitespace.
All .c and .h files now indent with tabs followed by <8 spaces.
Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/libipulog_compat.c')
-rw-r--r-- | src/libipulog_compat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libipulog_compat.c b/src/libipulog_compat.c index 85f7cf5..a0de3cb 100644 --- a/src/libipulog_compat.c +++ b/src/libipulog_compat.c @@ -32,7 +32,7 @@ static const struct ipulog_errmap_t { int errcode; const char *message; -} ipulog_errmap[] = +} ipulog_errmap[] = { { IPULOG_ERR_NONE, "No error" }, { IPULOG_ERR_IMPL, "Not implemented yet" }, @@ -99,7 +99,7 @@ struct ipulog_handle *ipulog_create_handle(uint32_t gmask, h->nfulh = nflog_open(); if (!h->nfulh) goto out_free; - + /* bind_pf returns EEXIST if we are already registered */ rv = nflog_bind_pf(h->nfulh, AF_INET); if (rv < 0 && rv != -EEXIST) @@ -146,7 +146,7 @@ next_msg: printf("next\n"); nfnl_parse_attr(tb, NFULA_MAX, NFM_NFA(NLMSG_DATA(nlh)), NFM_PAYLOAD(nlh)); - + if (!tb[NFULA_PACKET_HDR-1]) goto next_msg; @@ -207,7 +207,7 @@ next_msg: printf("next\n"); h->upmsg.data_len = NFA_PAYLOAD(tb[NFULA_PAYLOAD-1]); } else h->upmsg.data_len = 0; - + return &h->upmsg; } |