diff options
author | Duncan Roe <duncan_roe@optusnet.com.au> | 2024-11-12 11:45:40 +1100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-11-28 13:26:26 +0100 |
commit | 03da98bcd284d55212bc79e91dfb63da0ef7b937 (patch) | |
tree | 5287b11e97253fb44ca2934b988310f3a63e3b20 /src/callback.c | |
parent | 537e7df7cb6ddb51b73a9344b7aeb31e3121c30b (diff) |
Two distinct actions:
1. Remove trailing spaces and tabs.
2. Remove spaces that are followed by a tab, inserting extra tabs
as required.
Action 2 is only performed in the indent region of a line.
Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/callback.c')
-rw-r--r-- | src/callback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/callback.c b/src/callback.c index f5349c3..703ae80 100644 --- a/src/callback.c +++ b/src/callback.c @@ -21,7 +21,7 @@ static int mnl_cb_error(const struct nlmsghdr *nlh, void *data) const struct nlmsgerr *err = mnl_nlmsg_get_payload(nlh); if (nlh->nlmsg_len < mnl_nlmsg_size(sizeof(struct nlmsgerr))) { - errno = EBADMSG; + errno = EBADMSG; return MNL_CB_ERROR; } /* Netlink subsystems returns the errno value with different signess */ @@ -73,7 +73,7 @@ static inline int __mnl_cb_run(const void *buf, size_t numbytes, } /* netlink data message handling */ - if (nlh->nlmsg_type >= NLMSG_MIN_TYPE) { + if (nlh->nlmsg_type >= NLMSG_MIN_TYPE) { if (cb_data){ ret = cb_data(nlh, data); if (ret <= MNL_CB_STOP) |