[PATCH] cast results of ngx_ssl_get_connection to right type

Daniel Black daniel.black at openquery.com
Tue Oct 2 02:09:32 UTC 2012

cast the output of the ngx_ssl_get_connection to (ngx_connection_t *) since by default the macro returns a void *.

This is so we can ngx_ssl_get_connection(ssl_ctx)->log directly that assigning it to an intermediate. It will also generate a warning if we use the wrong variable type.

Daniel Black
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ngx_ssl_get_connection_macro_cast.patch
Type: text/x-patch
Size: 945 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20121002/6465a583/attachment.bin>

More information about the nginx-devel mailing list