X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=http_recv.c;h=9c42a1a85817f6cca6aa827e0ed349a01312949b;hp=80f0b1686496ce5fe4011d84e8a2d5e9e436264e;hb=f6a99f9e27cf84d92fc992677dca9578c5a3b585;hpb=9c00a79ed817c854ed10ee6bd1b908df8dc13a2f diff --git a/http_recv.c b/http_recv.c index 80f0b168..9c42a1a8 100644 --- a/http_recv.c +++ b/http_recv.c @@ -7,7 +7,12 @@ /** \file http_recv.c paraslash's http receiver */ #include +#include +#include #include +#include +#include +#include #include "para.h" #include "error.h" @@ -143,10 +148,8 @@ static void *http_recv_parse_config(int argc, char **argv) { struct http_recv_args_info *tmp = para_calloc(sizeof(*tmp)); - if (!http_recv_cmdline_parser(argc, argv, tmp)) - return tmp; - free(tmp); - return NULL; + http_recv_cmdline_parser(argc, argv, tmp); + return tmp; } static int http_recv_open(struct receiver_node *rn) @@ -192,13 +195,9 @@ void http_recv_init(struct receiver *r) r->open = http_recv_open; r->close = http_recv_close; r->pre_select = http_recv_pre_select; - r->post_select = NULL; - r->new_post_select = http_recv_post_select; + r->post_select = http_recv_post_select; r->parse_config = http_recv_parse_config; r->free_config = http_recv_free_config; - r->help = (struct ggo_help) { - .short_help = http_recv_args_info_help, - .detailed_help = http_recv_args_info_detailed_help - }; + r->help = (struct ggo_help)DEFINE_GGO_HELP(http_recv); http_recv_cmdline_parser_free(&dummy); }