Skip to content

Commit b86a71c

Browse files
committed
Clarify variable naming: pq_initssllib -> pq_init_ssl_lib
1 parent 0387770 commit b86a71c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/interfaces/libpq/fe-secure.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.120 2009/03/28 01:36:11 momjian Exp $
14+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.121 2009/03/28 18:48:55 momjian Exp $
1515
*
1616
* NOTES
1717
*
@@ -98,7 +98,7 @@ static void close_SSL(PGconn *);
9898
static char *SSLerrmessage(void);
9999
static void SSLerrfree(char *buf);
100100

101-
static bool pq_initssllib = true;
101+
static bool pq_init_ssl_lib = true;
102102
static SSL_CTX *SSL_context = NULL;
103103

104104
#ifdef ENABLE_THREAD_SAFETY
@@ -173,7 +173,7 @@ void
173173
PQinitSSL(int do_init)
174174
{
175175
#ifdef USE_SSL
176-
pq_initssllib = do_init;
176+
pq_init_ssl_lib = do_init;
177177
#endif
178178
}
179179

@@ -840,7 +840,7 @@ init_ssl_system(PGconn *conn)
840840
if (pthread_mutex_lock(&ssl_config_mutex))
841841
return -1;
842842

843-
if (pq_initssllib)
843+
if (pq_init_ssl_lib)
844844
{
845845
/*
846846
* If necessary, set up an array to hold locks for OpenSSL. OpenSSL will
@@ -880,7 +880,7 @@ init_ssl_system(PGconn *conn)
880880

881881
if (!SSL_context)
882882
{
883-
if (pq_initssllib)
883+
if (pq_init_ssl_lib)
884884
{
885885
#if SSLEAY_VERSION_NUMBER >= 0x00907000L
886886
OPENSSL_config(NULL);
@@ -928,7 +928,7 @@ destroy_ssl_system(void)
928928
if (pthread_mutex_lock(&ssl_config_mutex))
929929
return;
930930

931-
if (pq_initssllib)
931+
if (pq_init_ssl_lib)
932932
{
933933
if (ssl_open_connections > 0)
934934
--ssl_open_connections;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy