summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-01-29 20:39:12 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-02-05 17:35:52 +0100
commitca43a515c6bfac120e59de366c8ceb0396a0bb50 (patch)
tree07a44cf05ceda030de508893bb027f583e709bc6
parent421eca7edf7cdd89730d545ec376f14d4b75ed5e (diff)
downloadsystemd-ca43a515c6bfac120e59de366c8ceb0396a0bb50.tar.gz
network: fix implicit type conversion warning by GCC-10
Fixes part of #14691. (cherry picked from commit a44956c94a93fe34b5398ed9aefcf0fc705d4fa6) (cherry picked from commit 0ed6cda28dffc19dd3f6e08d3f16e4135de253b5)
-rw-r--r--src/network/netdev/tunnel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/netdev/tunnel.c b/src/network/netdev/tunnel.c
index c2525408ba..5ae6b629d1 100644
--- a/src/network/netdev/tunnel.c
+++ b/src/network/netdev/tunnel.c
@@ -696,7 +696,7 @@ static void ipip_sit_init(NetDev *n) {
assert(t);
t->pmtudisc = true;
- t->fou_encap_type = FOU_ENCAP_DIRECT;
+ t->fou_encap_type = NETDEV_FOO_OVER_UDP_ENCAP_DIRECT;
t->isatap = -1;
}
@@ -738,7 +738,7 @@ static void gre_erspan_init(NetDev *n) {
t->pmtudisc = true;
t->gre_erspan_sequence = -1;
- t->fou_encap_type = FOU_ENCAP_DIRECT;
+ t->fou_encap_type = NETDEV_FOO_OVER_UDP_ENCAP_DIRECT;
}
static void ip6gre_init(NetDev *n) {