From: Yu Watanabe Date: Wed, 29 Jan 2020 11:39:12 +0000 (+0900) Subject: network: fix implicit type conversion warning by GCC-10 X-Git-Tag: v245-rc1~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a44956c94a93fe34b5398ed9aefcf0fc705d4fa6;p=thirdparty%2Fsystemd.git network: fix implicit type conversion warning by GCC-10 Fixes part of #14691. --- diff --git a/src/network/netdev/tunnel.c b/src/network/netdev/tunnel.c index 8b0e3d27eae..72b33ed9e59 100644 --- a/src/network/netdev/tunnel.c +++ b/src/network/netdev/tunnel.c @@ -729,7 +729,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; } @@ -771,7 +771,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) {