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(-)
