From 3c2e29f215fb09e5b4cb29040d1e5e092ce73849 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Thu, 30 Aug 2012 17:48:33 +0400 Subject: [PATCH] fixed compilation --- ngx_rtmp_auto_push_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ngx_rtmp_auto_push_module.c b/ngx_rtmp_auto_push_module.c index 0378c89..e7079b9 100644 --- a/ngx_rtmp_auto_push_module.c +++ b/ngx_rtmp_auto_push_module.c @@ -199,7 +199,7 @@ ngx_rtmp_auto_push_init_process(ngx_cycle_t *cycle) } } - if (bind(s, sun, sizeof(*sun)) == -1) { + if (bind(s, (struct sockaddr *) sun, sizeof(*sun)) == -1) { ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_socket_errno, ngx_nonblocking_n " worker_socket bind failed"); goto sock_error;