git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tunnel: fix warning
[sliver-openvswitch.git]
/
lib
/
netdev-tunnel.c
diff --git
a/lib/netdev-tunnel.c
b/lib/netdev-tunnel.c
index
ec0f71f
..
5443a2d
100644
(file)
--- a/
lib/netdev-tunnel.c
+++ b/
lib/netdev-tunnel.c
@@
-121,7
+121,8
@@
netdev_tunnel_construct(struct netdev *netdev_)
netdev->connected = false;
netdev->connected = false;
- netdev->sockfd = inet_open_passive(SOCK_DGRAM, "", 0, &netdev->local_addr, 0);
+ netdev->sockfd = inet_open_passive(SOCK_DGRAM, "", 0,
+ (struct sockaddr_storage *)&netdev->local_addr, 0);
if (netdev->sockfd < 0) {
return netdev->sockfd;
}
if (netdev->sockfd < 0) {
return netdev->sockfd;
}