public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: [email protected]
Subject: pgsql: Declare load_hosts() as returning HostsFileLoadResult.
Date: Mon, 04 May 2026 22:33:21 +0000
Message-ID: <[email protected]> (raw)
Declare load_hosts() as returning HostsFileLoadResult.
This function returns some value of enum HostsFileLoadResult,
but for reasons lost in the development process was declared to
return "int". Fix that, for clarity and so that our typedefs
collection tooling sees the typedef as used. Also fix the
variable that the sole call assigns into. Move the typedef
to the header file that declares load_hosts() to avoid creating
header dependency problems.
Discussion: https://postgr.es/m/[email protected]
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/93da29736649f8f7ecb0787f233a28a02a9738db
Modified Files
--------------
src/backend/libpq/be-secure-common.c | 2 +-
src/backend/libpq/be-secure-openssl.c | 2 +-
src/include/libpq/hba.h | 9 ---------
src/include/libpq/libpq.h | 11 ++++++++++-
4 files changed, 12 insertions(+), 12 deletions(-)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: pgsql: Declare load_hosts() as returning HostsFileLoadResult.
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox