]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - net.h
net: Pass true/false instead of 0/1 to makesock().
[paraslash.git] / net.h
diff --git a/net.h b/net.h
index e71fe311e60d0ccac59ba626d346b432b3227437..d206881c587b8ec185856e23e84bb26ecf032f45 100644 (file)
--- a/net.h
+++ b/net.h
@@ -42,7 +42,7 @@ int makesock_addrinfo(unsigned l4type, bool passive, struct addrinfo *ai,
 
 static inline int para_connect(unsigned l4type, const char *host, uint16_t port)
 {
-       return makesock(l4type, 0, host, port, NULL);
+       return makesock(l4type, false, host, port, NULL);
 }
 
 void extract_v4_addr(const struct sockaddr_storage *ss, struct in_addr *ia);