X Tutup
Skip to content

Commit 6287589

Browse files
committed
shared: use -EINVAL for _NETDEV_BRIDGE_STATE_INVALID
Follow-up of systemd#11484
1 parent 3de56f4 commit 6287589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/bridge-util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ typedef enum BridgeState {
1313
NETDEV_BRIDGE_STATE_FORWARDING = BR_STATE_FORWARDING,
1414
NETDEV_BRIDGE_STATE_BLOCKING = BR_STATE_BLOCKING,
1515
_NETDEV_BRIDGE_STATE_MAX,
16-
_NETDEV_BRIDGE_STATE_INVALID = -1,
16+
_NETDEV_BRIDGE_STATE_INVALID = -EINVAL,
1717
} BridgeState;
1818

1919
const char *bridge_state_to_string(BridgeState d) _const_;

0 commit comments

Comments
 (0)
X Tutup