summaryrefslogtreecommitdiff
path: root/src/network/networkd-lldp-rx.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-09 17:17:47 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-10 14:46:59 +0100
commit2d93c20e5f600a9f1e4b617123577acf6ce5faa0 (patch)
tree9c1e17edb84c37920bb37d0fb8021c058c4ca2b3 /src/network/networkd-lldp-rx.h
parent71c163c9fa737053bccf8f6d733b272dfacc966f (diff)
downloadsystemd-2d93c20e5f600a9f1e4b617123577acf6ce5faa0.tar.gz
tree-wide: use -EINVAL for enum invalid values
As suggested in https://github.com/systemd/systemd/pull/11484#issuecomment-775288617. This does not touch anything exposed in src/systemd. Changing the defines there would be a compatibility break. Note that tests are broken after this commit. They will be fixed in the next one.
Diffstat (limited to 'src/network/networkd-lldp-rx.h')
-rw-r--r--src/network/networkd-lldp-rx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-lldp-rx.h b/src/network/networkd-lldp-rx.h
index 78c522893b..49306eafd0 100644
--- a/src/network/networkd-lldp-rx.h
+++ b/src/network/networkd-lldp-rx.h
@@ -10,7 +10,7 @@ typedef enum LLDPMode {
LLDP_MODE_YES = 1,
LLDP_MODE_ROUTERS_ONLY = 2,
_LLDP_MODE_MAX,
- _LLDP_MODE_INVALID = -1,
+ _LLDP_MODE_INVALID = -EINVAL,
} LLDPMode;
int link_lldp_rx_configure(Link *link);