[PATCH] cast results of ngx_ssl_get_connection to right type
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 945 bytes
Desc: not available
More information about the nginx-devel