summaryrefslogtreecommitdiffstats
path: root/socket.h
diff options
context:
space:
mode:
authorJuanJo Ciarlante <jjo@google.com>2009-09-19 18:33:40 +0200
committerJuanJo Ciarlante <juanjosec@gmail.com>2011-03-25 13:30:29 +0100
commit4d3df224e1210f732b84cf4273fb57993361d4ba (patch)
tree35c33c6e1fc7848361712450b8f156bd99a12d1a /socket.h
parent387df51180cf9139abfbc33b141fd395a58633b5 (diff)
downloadopenvpn-4d3df224e1210f732b84cf4273fb57993361d4ba.tar.gz
openvpn-4d3df224e1210f732b84cf4273fb57993361d4ba.tar.xz
openvpn-4d3df224e1210f732b84cf4273fb57993361d4ba.zip
* fixed win32 non-ipv6 build
Diffstat (limited to 'socket.h')
-rw-r--r--socket.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/socket.h b/socket.h
index 718805a..def8104 100644
--- a/socket.h
+++ b/socket.h
@@ -591,6 +591,7 @@ addr_defined_ipi (const struct link_socket_actual *lsa)
#else
ASSERT(0);
#endif
+ return false;
}
static inline bool
@@ -702,7 +703,7 @@ addr_inet4or6(struct sockaddr *addr)
int addr_guess_family(int proto, const char *name);
static inline int
-af_addr_size(sa_family_t af)
+af_addr_size(unsigned short af)
{
#if defined(USE_PF_INET6) || defined (USE_PF_UNIX)
switch(af) {