]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - net.c
net: Pass true/false instead of 0/1 to makesock().
[paraslash.git] / net.c
diff --git a/net.c b/net.c
index c4f0312acd80e810ba619b35bead80bd8578df2a..d6dfa7e3f56409bf2d5daf4ae534a348c86a1370 100644 (file)
--- a/net.c
+++ b/net.c
@@ -532,7 +532,7 @@ int makesock(unsigned l4type, bool passive, const char *host, uint16_t port_numb
        if (ai)
                freeaddrinfo(ai);
        if (ret < 0) {
-               PARA_ERROR_LOG("can not create %s socket %s#%d.\n",
+               PARA_NOTICE_LOG("can not create %s socket %s#%d.\n",
                layer4_name(l4type), host? host : (passive?
                "[loopback]" : "[localhost]"), port_number);
        }
@@ -870,7 +870,7 @@ int dccp_available_ccids(uint8_t **ccid_array)
        socklen_t nccids = sizeof(ccids);
        int ret, fd;
 
-       ret = fd = makesock(IPPROTO_DCCP, 1, NULL, 0, NULL);
+       ret = fd = makesock(IPPROTO_DCCP, true /* passive */, NULL, 0, NULL);
        if (ret < 0)
                return ret;