CREDITS update.
[paraslash.git] / client_common.c
index 1aab14f..7c31fcd 100644 (file)
@@ -81,7 +81,8 @@ static int client_connect(struct private_client_data *pcd)
        int ret;
 
        pcd->fd = -1;
-       ret = tcp_connect(pcd->conf.hostname_arg, pcd->conf.server_port_arg);
+       ret = makesock(AF_UNSPEC, IPPROTO_TCP, 0, pcd->conf.hostname_arg,
+                                                 pcd->conf.server_port_arg);
        if (ret < 0)
                return ret;
        pcd->fd = ret;