From a44956c94a93fe34b5398ed9aefcf0fc705d4fa6 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 29 Jan 2020 20:39:12 +0900 Subject: [PATCH] network: fix implicit type conversion warning by GCC-10 Fixes part of #14691. --- src/network/netdev/tunnel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.47.3