From 98c9031c4881c2ef4dd609320d57df32598be175 Mon Sep 17 00:00:00 2001 From: akshat-deepsource Date: Tue, 18 Nov 2025 16:59:34 +0530 Subject: [PATCH 1/2] Update fe-auth.h --- src/interfaces/libpq/fe-auth.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/interfaces/libpq/fe-auth.h b/src/interfaces/libpq/fe-auth.h index de98e0d20c4b4..65d63de0a21d1 100644 --- a/src/interfaces/libpq/fe-auth.h +++ b/src/interfaces/libpq/fe-auth.h @@ -21,8 +21,10 @@ extern PQauthDataHook_type PQauthDataHook; -/* Prototypes for functions in fe-auth.c */ -extern int pg_fe_sendauth(AuthRequest areq, int payloadlen, PGconn *conn, + /* Prototypes for functions in fe-auth.c */ + + +extern int pg_fe_sendauth(AuthRequest areq, int payloadlen, PGconn *conn, bool *async); extern char *pg_fe_getusername(uid_t user_id, PQExpBuffer errorMessage); extern char *pg_fe_getauthname(PQExpBuffer errorMessage); From 3b048e321a91132a890878223afa90c57802a7da Mon Sep 17 00:00:00 2001 From: "deepsource-dev-autofix[bot]" <61578317+deepsource-dev-autofix[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 11:31:27 +0000 Subject: [PATCH 2/2] style: format code with ClangFormat This commit fixes the style issues introduced in 98c9031 according to the output from ClangFormat. Details: https://github.com/akshat-deepsource/postgres/pull/1 --- src/interfaces/libpq/fe-auth.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/interfaces/libpq/fe-auth.h b/src/interfaces/libpq/fe-auth.h index 65d63de0a21d1..b33c5bd74bd3f 100644 --- a/src/interfaces/libpq/fe-auth.h +++ b/src/interfaces/libpq/fe-auth.h @@ -17,22 +17,18 @@ #include "libpq-fe.h" #include "libpq-int.h" - extern PQauthDataHook_type PQauthDataHook; +/* Prototypes for functions in fe-auth.c */ - /* Prototypes for functions in fe-auth.c */ - - -extern int pg_fe_sendauth(AuthRequest areq, int payloadlen, PGconn *conn, - bool *async); +extern int pg_fe_sendauth(AuthRequest areq, int payloadlen, PGconn *conn, + bool *async); extern char *pg_fe_getusername(uid_t user_id, PQExpBuffer errorMessage); extern char *pg_fe_getauthname(PQExpBuffer errorMessage); /* Mechanisms in fe-auth-scram.c */ extern const pg_fe_sasl_mech pg_scram_mech; -extern char *pg_fe_scram_build_secret(const char *password, - int iterations, - const char **errstr); +extern char *pg_fe_scram_build_secret(const char *password, int iterations, + const char **errstr); -#endif /* FE_AUTH_H */ +#endif /* FE_AUTH_H */