[nginx] Fixed build, broken by 8b7f062a3fe6.

Ruslan Ermilov ru at nginx.com
Thu Apr 16 12:21:10 UTC 2015


details:   http://hg.nginx.org/nginx/rev/ac34eff7e147
branches:  
changeset: 6098:ac34eff7e147
user:      Ruslan Ermilov <ru at nginx.com>
date:      Thu Apr 16 15:05:40 2015 +0300
description:
Fixed build, broken by 8b7f062a3fe6.

Casting a "const char *" to "char *" doesn't work on older gcc versions.

diffstat:

 src/core/nginx.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 8b7f062a3fe6 -r ac34eff7e147 src/core/nginx.c
--- a/src/core/nginx.c	Thu Apr 16 12:17:41 2015 +0300
+++ b/src/core/nginx.c	Thu Apr 16 15:05:40 2015 +0300
@@ -260,7 +260,8 @@ main(int argc, char *const *argv)
             } else {
                 ngx_write_stderr("built with " OPENSSL_VERSION_TEXT
                                  " (running with ");
-                ngx_write_stderr((char *) SSLeay_version(SSLEAY_VERSION));
+                ngx_write_stderr((char *) (uintptr_t)
+                                 SSLeay_version(SSLEAY_VERSION));
                 ngx_write_stderr(")" NGX_LINEFEED);
             }
 #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME



More information about the nginx-devel mailing list