From 7abddb801e23268b89273ceb0d9cfd75c6d99850 Mon Sep 17 00:00:00 2001 From: Kazuho Oku Date: Fri, 20 Feb 2015 21:29:15 +0900 Subject: [PATCH] adjust examples/libh2o/simple.c following the updates to the evloop interface --- examples/libh2o/simple.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/libh2o/simple.c b/examples/libh2o/simple.c index a0bdc9be59..613574b709 100644 --- a/examples/libh2o/simple.c +++ b/examples/libh2o/simple.c @@ -150,9 +150,9 @@ static void on_accept(h2o_socket_t *listener, int status) return; } if (ssl_ctx != NULL) - h2o_accept_ssl(&ctx, sock, ssl_ctx); + h2o_accept_ssl(&ctx, ctx.globalconf->hosts, sock, ssl_ctx); else - h2o_http1_accept(&ctx, sock); + h2o_http1_accept(&ctx, ctx.globalconf->hosts, sock); } static int create_listener(void) @@ -172,7 +172,7 @@ static int create_listener(void) return -1; } - sock = h2o_evloop_socket_create(ctx.loop, fd, H2O_SOCKET_FLAG_IS_ACCEPT); + sock = h2o_evloop_socket_create(ctx.loop, fd, (void *)&addr, sizeof(addr), H2O_SOCKET_FLAG_IS_ACCEPT); h2o_socket_read_start(sock, on_accept); return 0;