mbox series

[nft,v2,0/2] netlink_ctx initialization fixes.

Message ID 20190719111010.14421-1-jeremy@azazel.net
Headers show
Series netlink_ctx initialization fixes. | expand

Message

Jeremy Sowden July 19, 2019, 11:10 a.m. UTC
A couple of patches to tidy up initialization of a pair of netlink_ctx
variables.

Since v1 (based on Phil's feedback -- thanks, Phil):

 * Eliminated batch local variable from first patch.
 * Do initialization of .list and .batch into struct initializer from
   first patch.
 * Updated commit in "Fixes:" tag in first patch.
 * Added second patch.

Jeremy Sowden (2):
  libnftables: got rid of repeated initialization of netlink_ctx
    variable in loop.
  rule: removed duplicate member initializer.

 src/libnftables.c | 23 ++++++++++-------------
 src/rule.c        |  1 -
 2 files changed, 10 insertions(+), 14 deletions(-)

Comments

Pablo Neira Ayuso July 22, 2019, 9:29 p.m. UTC | #1
On Fri, Jul 19, 2019 at 12:10:08PM +0100, Jeremy Sowden wrote:
> A couple of patches to tidy up initialization of a pair of netlink_ctx
> variables.

Applied, thanks.