Skip to content

Commit b6dfee2

Browse files
committed
Run pgindent on libpq's fe-auth.c, fe-auth-scram.c and fe-connect.c
A patch sent by Jacob Champion has been touching this area of the code, and the set of changes done in a9e9a9f has made a run of pgindent on these files a bit annoying to handle. So let's clean up a bit the area, first, to ease the work on follow-up patches. Discussion: https://postgr.es/m/9e5a8ccddb8355ea9fa4b75a1e3a9edc88a70cd3.camel@vmware.com
1 parent 65e388d commit b6dfee2

File tree

3 files changed

+60
-60
lines changed

3 files changed

+60
-60
lines changed

src/interfaces/libpq/fe-auth-scram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ read_server_final_message(fe_scram_state *state, char *input)
716716
return false;
717717
}
718718
libpq_append_conn_error(conn, "error received from server in SCRAM exchange: %s",
719-
errmsg);
719+
errmsg);
720720
return false;
721721
}
722722

src/interfaces/libpq/fe-auth.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pg_GSS_continue(PGconn *conn, int payloadlen)
7373
if (!ginbuf.value)
7474
{
7575
libpq_append_conn_error(conn, "out of memory allocating GSSAPI buffer (%d)",
76-
payloadlen);
76+
payloadlen);
7777
return STATUS_ERROR;
7878
}
7979
if (pqGetnchar(ginbuf.value, payloadlen, conn))
@@ -223,7 +223,7 @@ pg_SSPI_continue(PGconn *conn, int payloadlen)
223223
if (!inputbuf)
224224
{
225225
libpq_append_conn_error(conn, "out of memory allocating SSPI buffer (%d)",
226-
payloadlen);
226+
payloadlen);
227227
return STATUS_ERROR;
228228
}
229229
if (pqGetnchar(inputbuf, payloadlen, conn))
@@ -623,7 +623,7 @@ pg_SASL_continue(PGconn *conn, int payloadlen, bool final)
623623
if (!challenge)
624624
{
625625
libpq_append_conn_error(conn, "out of memory allocating SASL buffer (%d)",
626-
payloadlen);
626+
payloadlen);
627627
return STATUS_ERROR;
628628
}
629629

@@ -1277,7 +1277,7 @@ PQencryptPasswordConn(PGconn *conn, const char *passwd, const char *user,
12771277
else
12781278
{
12791279
libpq_append_conn_error(conn, "unrecognized password encryption algorithm \"%s\"",
1280-
algorithm);
1280+
algorithm);
12811281
return NULL;
12821282
}
12831283

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