Welcome! Log In Create A New Profile

Advanced

[nginx] Fixed build, broken by 8b7f062a3fe6.

Ruslan Ermilov
April 16, 2015 08:22AM
details: http://hg.nginx.org/nginx/rev/ac34eff7e147
branches:
changeset: 6098:ac34eff7e147
user: Ruslan Ermilov <ru@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

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Fixed build, broken by 8b7f062a3fe6.

Ruslan Ermilov 446 April 16, 2015 08:22AM



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

Online Users

Guests: 105
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