Welcome! Log In Create A New Profile

Advanced

[PATCH] cast results of ngx_ssl_get_connection to right type

Daniel Black
October 01, 2012 10:10PM
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_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] cast results of ngx_ssl_get_connection to right type

Daniel Black 840 October 01, 2012 10:10PM

Re: [PATCH] cast results of ngx_ssl_get_connection to right type

Maxim Dounin 617 October 02, 2012 06:10AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 70
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready