diff options
Diffstat (limited to 'src/interfaces')
-rw-r--r-- | src/interfaces/libpq/fe-auth.c | 8 | ||||
-rw-r--r-- | src/interfaces/libpq/fe-secure-common.c | 1 | ||||
-rw-r--r-- | src/interfaces/libpq/t/002_api.pl | 6 |
3 files changed, 9 insertions, 6 deletions
diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c index 6fceff561b9..0a072a36dc2 100644 --- a/src/interfaces/libpq/fe-auth.c +++ b/src/interfaces/libpq/fe-auth.c @@ -1123,10 +1123,10 @@ pg_fe_getusername(uid_t user_id, PQExpBuffer errorMessage) /* * Some users are using configure --enable-thread-safety-force, so we - * might as well do the locking within our library to protect - * getpwuid(). In fact, application developers can use getpwuid() in - * their application if they use the locking call we provide, or install - * their own locking function using PQregisterThreadLock(). + * might as well do the locking within our library to protect getpwuid(). + * In fact, application developers can use getpwuid() in their application + * if they use the locking call we provide, or install their own locking + * function using PQregisterThreadLock(). */ pglock_thread(); diff --git a/src/interfaces/libpq/fe-secure-common.c b/src/interfaces/libpq/fe-secure-common.c index 165a6ed9b7b..8046fcd884a 100644 --- a/src/interfaces/libpq/fe-secure-common.c +++ b/src/interfaces/libpq/fe-secure-common.c @@ -203,6 +203,7 @@ pq_verify_peer_name_matches_certificate_ip(PGconn *conn, match = 1; } } + /* * If they don't have inet_pton(), skip this. Then, an IPv6 address in a * certificate will cause an error. diff --git a/src/interfaces/libpq/t/002_api.pl b/src/interfaces/libpq/t/002_api.pl index 8b3355e6dd6..fa00221ae29 100644 --- a/src/interfaces/libpq/t/002_api.pl +++ b/src/interfaces/libpq/t/002_api.pl @@ -6,7 +6,7 @@ use PostgreSQL::Test::Utils; use Test::More; # Test PQsslAttribute(NULL, "library") -my ($out, $err) = run_command(['libpq_testclient', '--ssl']); +my ($out, $err) = run_command([ 'libpq_testclient', '--ssl' ]); if ($ENV{with_ssl} eq 'openssl') { @@ -14,7 +14,9 @@ if ($ENV{with_ssl} eq 'openssl') } else { - is($err, 'SSL is not enabled', 'PQsslAttribute(NULL, "library") returns NULL'); + is( $err, + 'SSL is not enabled', + 'PQsslAttribute(NULL, "library") returns NULL'); } done_testing(); |