Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb6dfee2

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 ina9e9a9f has made a run of pgindent onthese 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 parent65e388d commitb6dfee2

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
returnSTATUS_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
returnSTATUS_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
returnSTATUS_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
returnNULL;
12821282
}
12831283

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp