]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - net.c
net: Refer to correct man page in stringify_port().
[paraslash.git] / net.c
diff --git a/net.c b/net.c
index 96950ae932187a1e6c4d0270bad02775efdab2da..1c0e7ffa13cec1043babf65bf3a951656dabad8c 100644 (file)
--- a/net.c
+++ b/net.c
@@ -219,7 +219,7 @@ char *format_url(const char *url, int default_port)
  * \param transport Transport protocol name (e.g. "udp", "tcp"), or NULL.
  * \return Pointer to static result buffer.
  *
- * \sa getservent(3), services(5), nsswitch.conf(5).
+ * \sa getservbyport(3), services(5), nsswitch.conf(5).
  */
 const char *stringify_port(int port, const char *transport)
 {
@@ -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;