From d083308d1743c1860c0845d55e9fc9672f7ce2f3 Mon Sep 17 00:00:00 2001 From: Duncan Roe Date: Tue, 31 Aug 2021 18:01:58 +1000 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- include/libnetfilter_log/libipulog.h | 4 ++-- include/libnetfilter_log/libnetfilter_log.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/libnetfilter_log/libipulog.h b/include/libnetfilter_log/libipulog.h index 4d87913..8fba03a 100644 --- a/include/libnetfilter_log/libipulog.h +++ b/include/libnetfilter_log/libipulog.h @@ -12,7 +12,7 @@ extern "C" { #endif /* FIXME: glibc sucks */ -#ifndef MSG_TRUNC +#ifndef MSG_TRUNC #define MSG_TRUNC 0x20 #endif @@ -55,7 +55,7 @@ const char *ipulog_strerror(int errcode); void ipulog_perror(const char *s); -enum +enum { IPULOG_ERR_NONE = 0, IPULOG_ERR_IMPL, diff --git a/include/libnetfilter_log/libnetfilter_log.h b/include/libnetfilter_log/libnetfilter_log.h index 6192fa3..c27149f 100644 --- a/include/libnetfilter_log/libnetfilter_log.h +++ b/include/libnetfilter_log/libnetfilter_log.h @@ -49,7 +49,7 @@ extern int nflog_set_flags(struct nflog_g_handle *gh, uint16_t flags); extern int nflog_set_qthresh(struct nflog_g_handle *gh, uint32_t qthresh); extern int nflog_set_nlbufsiz(struct nflog_g_handle *gh, uint32_t nlbufsiz); -extern int nflog_callback_register(struct nflog_g_handle *gh, +extern int nflog_callback_register(struct nflog_g_handle *gh, nflog_callback *cb, void *data); extern int nflog_handle_packet(struct nflog_handle *h, char *buf, int len); -- cgit v1.2.3