Skip to content

Commit

Permalink
Fixed build, broken by 8b7f062a3fe6.
Browse files Browse the repository at this point in the history
Casting a "const char *" to "char *" doesn't work on older gcc versions.
  • Loading branch information
mdocguard committed Apr 16, 2015
1 parent fd4da89 commit b25f0dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/nginx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b25f0dd

Please sign in to comment.