There is only one caller, vss_send(), which ignores the return value.
So there is no point in returning an error code from this method.
return mps;
}
-static int dccp_send_fec(struct sender_client *sc, char *buf, size_t len)
+static void dccp_send_fec(struct sender_client *sc, char *buf, size_t len)
{
int ret = write_nonblock(sc->fd, buf, len);
if (ret < 0)
dccp_shutdown_client(sc);
- return ret;
}
static void dccp_post_select(fd_set *rfds, __a_unused fd_set *wfds)
*/
int (*init_fec)(struct sender_client *sc);
/** Push out FEC-encoded packets */
- int (*send_fec)(struct sender_client *sc, char *buf, size_t len);
+ void (*send_fec)(struct sender_client *sc, char *buf, size_t len);
};
/** Describes the current status of one paraslash sender. */
return -ERRNO_TO_PARA_ERROR(ret);
}
-static int udp_send_fec(struct sender_client *sc, char *buf, size_t len)
+static void udp_send_fec(struct sender_client *sc, char *buf, size_t len)
{
int ret;
if (sender_status == SENDER_OFF)
- return 0;
+ return;
if (len == 0)
- return 0;
+ return;
ret = udp_check_socket_state(sc);
if (ret < 0)
goto fail;
}
if (ret < 0)
goto fail;
- return 1;
+ return;
fail:
udp_delete_target(sc, para_strerror(-ret));
- return ret;
}
static int udp_com_add(struct sender_command_data *scd)