summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-08-26 20:48:21 +0200
committerLennart Poettering <lennart@poettering.net>2015-08-26 20:48:21 +0200
commitbd91b83e578165b4c242c9f34ff1d3be8fb3ab22 (patch)
treefb029d45632d322948d17a1033139b7753f7388b /src/network
parent2f3cf1f9e18738e9882851dbc05aee67a5901336 (diff)
dhcp: keep lease save/load functions private
When we make sd-dhcp public one day we really should not make sd_dhcp_lease_save() and sd_dhcp_lease_load() public, since it's pretty much only useful as internal utility for networkd itself.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-link.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index c179aafebb..09c27de22b 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -29,6 +29,7 @@
#include "socket-util.h"
#include "bus-util.h"
#include "udev-util.h"
+#include "dhcp-lease-internal.h"
#include "network-internal.h"
#include "networkd-link.h"
#include "networkd-netdev.h"
@@ -2445,7 +2446,7 @@ int link_save(Link *link) {
if (link->dhcp_lease) {
assert(link->network);
- r = sd_dhcp_lease_save(link->dhcp_lease, link->lease_file);
+ r = dhcp_lease_save(link->dhcp_lease, link->lease_file);
if (r < 0)
goto fail;