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 /utils | |
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 'utils')
-rw-r--r-- | utils/nfulnl_test.c | 4 | ||||
-rw-r--r-- | utils/ulog_test.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/utils/nfulnl_test.c b/utils/nfulnl_test.c index dd3091b..da140b4 100644 --- a/utils/nfulnl_test.c +++ b/utils/nfulnl_test.c @@ -15,9 +15,9 @@ static int print_pkt(struct nflog_data *ldata) char *prefix = nflog_get_prefix(ldata); char *payload; int payload_len = nflog_get_payload(ldata, &payload); - + if (ph) { - printf("hw_protocol=0x%04x hook=%u ", + printf("hw_protocol=0x%04x hook=%u ", ntohs(ph->hw_protocol), ph->hook); } diff --git a/utils/ulog_test.c b/utils/ulog_test.c index 20f6163..213a2bf 100644 --- a/utils/ulog_test.c +++ b/utils/ulog_test.c @@ -22,7 +22,7 @@ void handle_packet(ulog_packet_msg_t *pkt) { unsigned char *p; int i; - + printf("Hook=%u Mark=%lu len=%zu ", pkt->hook, pkt->mark, pkt->data_len); if (strlen(pkt->prefix)) @@ -34,7 +34,7 @@ void handle_packet(ulog_packet_msg_t *pkt) if (pkt->timestamp_sec || pkt->timestamp_usec) printf("Timestamp=%ld.%06lds ", pkt->timestamp_sec, pkt->timestamp_usec); - + if (pkt->mac_len) { printf("mac="); @@ -63,7 +63,7 @@ int main(int argc, char *argv[]) buf = malloc(MYBUFSIZ); if (!buf) exit(1); - + /* create ipulog handle */ h = ipulog_create_handle(ipulog_group2gmask(atoi(argv[2])), 65535); if (!h) @@ -87,7 +87,7 @@ int main(int argc, char *argv[]) handle_packet(upkt); } } - + /* just to give it a cleaner look */ ipulog_destroy_handle(h); return 0; |