From 560852ced07a647e2d288ce2932aaf608712867d Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 17 Jul 2014 16:49:39 +0200 Subject: sd-network: expose 'unmanaged' as a regular state This is useful to save in the consumer of the lib, unlike ENODATA/EBUSY which means that the user should wait until a useful state is available. --- src/network/sd-network.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/network') diff --git a/src/network/sd-network.c b/src/network/sd-network.c index 1b7518fd94..50e5d9be1f 100644 --- a/src/network/sd-network.c +++ b/src/network/sd-network.c @@ -85,9 +85,7 @@ _public_ int sd_network_get_link_state(unsigned index, char **state) { else if (!s) return -EIO; - if (streq(s, "unmanaged")) - return -EUNATCH; - else if (streq(s, "initializing")) + if (streq(s, "initializing")) return -EBUSY; *state = s; -- cgit v1.2.3-54-g00ecf