X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=http_send.c;h=d692c2d2f3b741f093775bd983d84100bb741644;hb=1319d78c9a00faf49f6104ab8c2813558367e442;hp=26536d07eea58350de76196c29c5512a0e0963a5;hpb=764e71ceb1e188086c08e38dfd52d45b67dc15ba;p=paraslash.git diff --git a/http_send.c b/http_send.c index 26536d07..d692c2d2 100644 --- a/http_send.c +++ b/http_send.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2005 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2005 Andre Noll , see file COPYING. */ /** \file http_send.c paraslash's http sender */ @@ -213,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) @@ -249,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; @@ -269,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); }