X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=http_send.c;h=90e3ee57d1b6d40152ef6fc4026331766e2524c5;hb=b0a87fd7b5aeb8007afd3ac25d8548543d42080c;hp=59fe2efa0419b0376201b236431fd2ea605273e2;hpb=bb899fb1a0c279a2890ff30d11bf7aec50fb92ed;p=paraslash.git diff --git a/http_send.c b/http_send.c index 59fe2efa..90e3ee57 100644 --- a/http_send.c +++ b/http_send.c @@ -158,7 +158,7 @@ static void http_send(long unsigned current_chunk, } } -static void http_post_select(__a_unused struct sched *s) +static void http_post_monitor(__a_unused struct sched *s) { struct sender_client *sc, *tmp; struct private_http_sender_data *phsd; @@ -191,12 +191,12 @@ static void http_post_select(__a_unused struct sched *s) sc = accept_sender_client(hss); if (!sc) return; - phsd = para_malloc(sizeof(*phsd)); + phsd = alloc(sizeof(*phsd)); sc->private_data = phsd; phsd->status = HTTP_CONNECTED; } -static void http_pre_select(struct sched *s) +static void http_pre_monitor(struct sched *s) { struct sender_client *sc, *tmp; unsigned n; @@ -274,8 +274,8 @@ const struct sender http_sender = { .name = "http", .init = http_send_init, .shutdown = http_shutdown, - .pre_select = http_pre_select, - .post_select = http_post_select, + .pre_monitor = http_pre_monitor, + .post_monitor = http_post_monitor, .send = http_send, .shutdown_clients = http_shutdown_clients, .client_cmds = {