diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2020-01-30 13:32:04 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2020-01-30 13:32:04 -0300 |
commit | 4e89c79a52f8a898edd648b56a00f0f4f840cfe7 (patch) | |
tree | ba259edb0559281eaf0953d6995781b264a1aec7 /src/backend/libpq | |
parent | 2520cf8c2a0a1d679094dffbd99871884e620ed5 (diff) | |
download | postgresql-4e89c79a52f8a898edd648b56a00f0f4f840cfe7.tar.gz postgresql-4e89c79a52f8a898edd648b56a00f0f4f840cfe7.zip |
Remove excess parens in ereport() calls
Cosmetic cleanup, not worth backpatching.
Discussion: https://postgr.es/m/20200129200401.GA6303@alvherre.pgsql
Reviewed-by: Tom Lane, Michael Paquier
Diffstat (limited to 'src/backend/libpq')
-rw-r--r-- | src/backend/libpq/auth-scram.c | 8 | ||||
-rw-r--r-- | src/backend/libpq/be-secure-openssl.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/libpq/auth-scram.c b/src/backend/libpq/auth-scram.c index d2e94d76c5f..5e5119e8ea7 100644 --- a/src/backend/libpq/auth-scram.c +++ b/src/backend/libpq/auth-scram.c @@ -997,8 +997,8 @@ read_client_first_message(scram_state *state, const char *input) if (strcmp(channel_binding_type, "tls-server-end-point") != 0) ereport(ERROR, (errcode(ERRCODE_PROTOCOL_VIOLATION), - (errmsg("unsupported SCRAM channel-binding type \"%s\"", - sanitize_str(channel_binding_type))))); + errmsg("unsupported SCRAM channel-binding type \"%s\"", + sanitize_str(channel_binding_type)))); break; default: ereport(ERROR, @@ -1282,7 +1282,7 @@ read_client_final_message(scram_state *state, const char *input) if (strcmp(channel_binding, b64_message) != 0) ereport(ERROR, (errcode(ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION), - (errmsg("SCRAM channel binding check failed")))); + errmsg("SCRAM channel binding check failed"))); #else /* shouldn't happen, because we checked this earlier already */ elog(ERROR, "channel binding not supported by this build"); @@ -1300,7 +1300,7 @@ read_client_final_message(scram_state *state, const char *input) !(strcmp(channel_binding, "eSws") == 0 && state->cbind_flag == 'y')) ereport(ERROR, (errcode(ERRCODE_PROTOCOL_VIOLATION), - (errmsg("unexpected SCRAM channel-binding attribute in client-final-message")))); + errmsg("unexpected SCRAM channel-binding attribute in client-final-message"))); } state->client_final_nonce = read_attr_value(&p, 'r'); diff --git a/src/backend/libpq/be-secure-openssl.c b/src/backend/libpq/be-secure-openssl.c index 987ab660cbe..18d3fff068b 100644 --- a/src/backend/libpq/be-secure-openssl.c +++ b/src/backend/libpq/be-secure-openssl.c @@ -999,7 +999,7 @@ initialize_dh(SSL_CTX *context, bool isServerStart) { ereport(isServerStart ? FATAL : LOG, (errcode(ERRCODE_CONFIG_FILE_ERROR), - (errmsg("DH: could not load DH parameters")))); + errmsg("DH: could not load DH parameters"))); return false; } @@ -1007,8 +1007,8 @@ initialize_dh(SSL_CTX *context, bool isServerStart) { ereport(isServerStart ? FATAL : LOG, (errcode(ERRCODE_CONFIG_FILE_ERROR), - (errmsg("DH: could not set DH parameters: %s", - SSLerrmessage(ERR_get_error()))))); + errmsg("DH: could not set DH parameters: %s", + SSLerrmessage(ERR_get_error())))); DH_free(dh); return false; } |