networkctl: create the sd_device structure just once
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 23 Oct 2019 15:02:18 +0000 (17:02 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 23 Oct 2019 22:02:43 +0000 (00:02 +0200)
commit172353b1109cc250ee85c17271e58f91946aa3bb
treecae8071b1c99c8613f0e86f9f75194ea0eef06fd
parentb492aea093bba5f7c85806b050985a0b0333c4f9
networkctl: create the sd_device structure just once

This is mostly in preparation for future changes: a proper freeing function
is now called on the LinkInfo items.
src/network/networkctl.c