Skip to content

Commit 3ab1b64

Browse files
committed
Style: added missing "static" specifiers.
Mostly found by gcc -Wtraditional, per "non-static declaration of ... follows static declaration [-Wtraditional]" warnings.
1 parent f29d7ad commit 3ab1b64

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/event/ngx_event_openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2767,7 +2767,7 @@ ngx_ssl_write(ngx_connection_t *c, u_char *data, size_t size)
27672767

27682768
#ifdef SSL_READ_EARLY_DATA_SUCCESS
27692769

2770-
ssize_t
2770+
static ssize_t
27712771
ngx_ssl_write_early(ngx_connection_t *c, u_char *data, size_t size)
27722772
{
27732773
int n, sslerr;

src/stream/ngx_stream_ssl_module.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ static ngx_int_t ngx_stream_ssl_init_connection(ngx_ssl_t *ssl,
2323
ngx_connection_t *c);
2424
static void ngx_stream_ssl_handshake_handler(ngx_connection_t *c);
2525
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
26-
int ngx_stream_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg);
26+
static int ngx_stream_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad,
27+
void *arg);
2728
#endif
2829
#ifdef TLSEXT_TYPE_application_layer_protocol_negotiation
2930
static int ngx_stream_ssl_alpn_select(ngx_ssl_conn_t *ssl_conn,
@@ -451,7 +452,7 @@ ngx_stream_ssl_handshake_handler(ngx_connection_t *c)
451452

452453
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
453454

454-
int
455+
static int
455456
ngx_stream_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg)
456457
{
457458
return SSL_TLSEXT_ERR_OK;
@@ -502,7 +503,7 @@ ngx_stream_ssl_alpn_select(ngx_ssl_conn_t *ssl_conn, const unsigned char **out,
502503

503504
#ifdef SSL_R_CERT_CB_ERROR
504505

505-
int
506+
static int
506507
ngx_stream_ssl_certificate(ngx_ssl_conn_t *ssl_conn, void *arg)
507508
{
508509
ngx_str_t cert, key;

0 commit comments

Comments
 (0)