]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - udp_send.c
08_refactor-makesock.diff
[paraslash.git] / udp_send.c
index 13d2a2ca20d52336f6743458cc4a060b8ec0ef36..4678e936d620da06d736e779eaff21f1c3383145 100644 (file)
@@ -160,7 +160,7 @@ static int udp_init_session(struct udp_target *ut)
        if (ut->fd >= 0) /* nothing to do */
                return 0;
 
-       ret = makesock(AF_UNSPEC, IPPROTO_UDP, 0, ut->host, ut->port, NULL);
+       ret = para_connect_simple(IPPROTO_UDP, ut->host, ut->port);
        if (ret < 0)
                return ret;
        ut->fd = ret;