diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-07-01 15:47:36 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-07-01 15:47:36 +0200 |
commit | ce5c77cc5b727dbe3122d0d3b585e7613b3b1c3d (patch) | |
tree | da92d23f9998bb1d3fc9f1733cfd3d0a253117b1 /src/callback.c | |
parent | dcdb47373a375087d2dd8cee5e2a9c66fcc147eb (diff) |
src: cleanup function definitions
Place the returned value, function name and parameters (as many as can
fit) in the same line.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/callback.c')
-rw-r--r-- | src/callback.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/callback.c b/src/callback.c index beaeb59..00ffcf4 100644 --- a/src/callback.c +++ b/src/callback.c @@ -45,10 +45,11 @@ static const mnl_cb_t default_cb_array[NLMSG_MIN_TYPE] = { [NLMSG_OVERRUN] = mnl_cb_noop, }; -static inline int -__mnl_cb_run(const void *buf, size_t numbytes, unsigned int seq, - unsigned int portid, mnl_cb_t cb_data, void *data, - mnl_cb_t *cb_ctl_array, unsigned int cb_ctl_array_len) +static inline int __mnl_cb_run(const void *buf, size_t numbytes, + unsigned int seq, unsigned int portid, + mnl_cb_t cb_data, void *data, + mnl_cb_t *cb_ctl_array, + unsigned int cb_ctl_array_len) { int ret = MNL_CB_OK, len = numbytes; const struct nlmsghdr *nlh = buf; @@ -127,10 +128,9 @@ out: * request a new fresh dump again. */ EXPORT_SYMBOL(mnl_cb_run2); -int -mnl_cb_run2(const void *buf, size_t numbytes, unsigned int seq, - unsigned int portid, mnl_cb_t cb_data, void *data, - mnl_cb_t *cb_ctl_array, unsigned int cb_ctl_array_len) +int mnl_cb_run2(const void *buf, size_t numbytes, unsigned int seq, + unsigned int portid, mnl_cb_t cb_data, void *data, + mnl_cb_t *cb_ctl_array, unsigned int cb_ctl_array_len) { return __mnl_cb_run(buf, numbytes, seq, portid, cb_data, data, cb_ctl_array, cb_ctl_array_len); @@ -156,9 +156,8 @@ mnl_cb_run2(const void *buf, size_t numbytes, unsigned int seq, * This function propagates the callback return value. */ EXPORT_SYMBOL(mnl_cb_run); -int -mnl_cb_run(const void *buf, size_t numbytes, unsigned int seq, - unsigned int portid, mnl_cb_t cb_data, void *data) +int mnl_cb_run(const void *buf, size_t numbytes, unsigned int seq, + unsigned int portid, mnl_cb_t cb_data, void *data) { return __mnl_cb_run(buf, numbytes, seq, portid, cb_data, data, NULL, 0); } |