]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: fix implicit type conversion warning by GCC-10
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 29 Jan 2020 11:39:12 +0000 (20:39 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 29 Jan 2020 18:24:12 +0000 (19:24 +0100)
Fixes part of #14691.

src/network/netdev/tunnel.c

index 8b0e3d27eae3194510802c6c50dac03fee5ba060..72b33ed9e59302f1a7b92e9d845097d410644042 100644 (file)
@@ -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) {