Declare load_hosts() as returning HostsFileLoadResult.
Tom Lane <tgl@sss.pgh.pa.us>
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/359138.1777922557@sss.pgh.pa.us
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/libpq/be-secure-common.c | modified | +1 −1 |
| src/backend/libpq/be-secure-openssl.c | modified | +1 −1 |
| src/include/libpq/hba.h | modified | +0 −9 |
| src/include/libpq/libpq.h | modified | +10 −1 |
Discussion
- Serverside SNI support in libpq 72 messages · 2024-05-10 → 2026-05-05