X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=http_send.c;h=d692c2d2f3b741f093775bd983d84100bb741644;hb=1319d78c9a00faf49f6104ab8c2813558367e442;hp=dace5c23c6574527a6b8c26880eb63bd896b8aca;hpb=d31995b3074bb19aa4da66ce5c4774ca9ed101a1;p=paraslash.git diff --git a/http_send.c b/http_send.c index dace5c23..d692c2d2 100644 --- a/http_send.c +++ b/http_send.c @@ -209,7 +209,8 @@ static void http_pre_select(int *max_fileno, fd_set *rfds, fd_set *wfds) static int http_com_on(__a_unused struct sender_command_data *scd) { - return generic_com_on(hss, IPPROTO_TCP); + generic_com_on(hss, IPPROTO_TCP); + return 1; } static int http_com_off(__a_unused struct sender_command_data *scd) @@ -245,7 +246,6 @@ static char *http_status(void) */ void http_send_init(struct sender *s) { - int ret; s->status = http_status; s->send = http_send; s->pre_select = http_pre_select; @@ -265,7 +265,5 @@ void http_send_init(struct sender *s) OPT_GIVEN(HTTP_DEFAULT_DENY)); if (OPT_GIVEN(HTTP_NO_AUTOSTART)) return; - ret = generic_com_on(hss, IPPROTO_TCP); - if (ret < 0) - PARA_ERROR_LOG("%s\n", para_strerror(-ret)); + generic_com_on(hss, IPPROTO_TCP); }