]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared: use -EINVAL for _NETDEV_BRIDGE_STATE_INVALID
authorBenjamin Robin <dev@benjarobin.fr>
Tue, 16 Feb 2021 22:24:11 +0000 (23:24 +0100)
committerBenjamin Robin <dev@benjarobin.fr>
Tue, 16 Feb 2021 22:40:30 +0000 (23:40 +0100)
Follow-up of #11484

src/shared/bridge-util.h

index c9b02d822f87fb042210eb3cab460e611b5a77a9..a60891c8f069613499a0031b71e590108f1e22d1 100644 (file)
@@ -13,7 +13,7 @@ typedef enum BridgeState {
         NETDEV_BRIDGE_STATE_FORWARDING = BR_STATE_FORWARDING,
         NETDEV_BRIDGE_STATE_BLOCKING   = BR_STATE_BLOCKING,
         _NETDEV_BRIDGE_STATE_MAX,
-        _NETDEV_BRIDGE_STATE_INVALID      = -1,
+        _NETDEV_BRIDGE_STATE_INVALID   = -EINVAL,
 } BridgeState;
 
 const char *bridge_state_to_string(BridgeState d) _const_;