summaryrefslogtreecommitdiff
path: root/src/backend/libpq/hba.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-09-15 10:48:30 +0200
committerPeter Eisentraut <peter@eisentraut.org>2025-09-15 11:04:10 +0200
commitdc41d7415fc6eea3b5c5528a39d07016983ea75e (patch)
treeb23c9a49e76da680dbe35200c013f2aceb99cc1f /src/backend/libpq/hba.c
parentd4d1fc527bdb333d818038081c17ed7d9b1697c1 (diff)
Remove hbaPort type
This was just a workaround to avoid including the header file that defines the Port type. With C11, we can now just re-define the Port type without the possibility of a conflict. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/10d32190-f31b-40a5-b177-11db55597355@eisentraut.org
Diffstat (limited to 'src/backend/libpq/hba.c')
-rw-r--r--src/backend/libpq/hba.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c
index fecee8224d0..97a3586000b 100644
--- a/src/backend/libpq/hba.c
+++ b/src/backend/libpq/hba.c
@@ -1075,7 +1075,7 @@ hostname_match(const char *pattern, const char *actual_hostname)
* Check to see if a connecting IP matches a given host name.
*/
static bool
-check_hostname(hbaPort *port, const char *hostname)
+check_hostname(Port *port, const char *hostname)
{
struct addrinfo *gai_result,
*gai;
@@ -2528,7 +2528,7 @@ parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline,
* request.
*/
static void
-check_hba(hbaPort *port)
+check_hba(Port *port)
{
Oid roleid;
ListCell *line;
@@ -3125,7 +3125,7 @@ load_ident(void)
* method = uaImplicitReject.
*/
void
-hba_getauthmethod(hbaPort *port)
+hba_getauthmethod(Port *port)
{
check_hba(port);
}