]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - udp_send.c
cleanup: remove redundant 'max length' argument
[paraslash.git] / udp_send.c
index a7d696efd93c88e3ef3aabd257943b5db6380945..70373c99d4fbbd8526837179dd8f24a0c68153e6 100644 (file)
@@ -253,10 +253,7 @@ static int udp_send_fec(struct sender_client *sc, char *buf, size_t len)
 
        if (sender_status == SENDER_OFF)
                return 0;
-       ret = udp_init_session(sc);
-       if (ret < 0)
-               goto fail;
-       ret = send_queued_chunks(sc->fd, sc->cq, 0);
+       ret = send_queued_chunks(sc->fd, sc->cq);
        if (ret == -ERRNO_TO_PARA_ERROR(ECONNREFUSED))
                ret = 0;
        if (ret < 0)
@@ -267,7 +264,7 @@ static int udp_send_fec(struct sender_client *sc, char *buf, size_t len)
                ret = cq_force_enqueue(sc->cq, buf, len);
                assert(ret >= 0);
        }
-       ret = write_nonblock(sc->fd, buf, len, 0);
+       ret = write_nonblock(sc->fd, buf, len);
        if (ret == -ERRNO_TO_PARA_ERROR(ECONNREFUSED))
                ret = 0;
        if (ret < 0)