From 62875895fa455eccf156e51d50da5d4a995febeb Mon Sep 17 00:00:00 2001 From: Benjamin Robin Date: Tue, 16 Feb 2021 23:24:11 +0100 Subject: [PATCH] shared: use -EINVAL for _NETDEV_BRIDGE_STATE_INVALID Follow-up of #11484 --- src/shared/bridge-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/bridge-util.h b/src/shared/bridge-util.h index c9b02d822f..a60891c8f0 100644 --- a/src/shared/bridge-util.h +++ b/src/shared/bridge-util.h @@ -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_;