Remove IS_AF_UNIX macro
Peter Eisentraut <peter@eisentraut.org>
Remove IS_AF_UNIX macro The AF_UNIX macro was being used unprotected by HAVE_UNIX_SOCKETS, apparently since 2008. So the redirection through IS_AF_UNIX() is apparently no longer necessary. (More generally, all supported platforms are now HAVE_UNIX_SOCKETS, but even if there were a new platform in the future, it seems plausible that it would define the AF_UNIX symbol even without kernel support.) So remove the IS_AF_UNIX() macro and make the code a bit more consistent. Discussion: https://www.postgresql.org/message-id/flat/f2d26815-9832-e333-d52d-72fbc0ade896%40enterprisedb.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/libpq/hba.c | modified | +2 −2 |
| src/backend/libpq/pqcomm.c | modified | +12 −12 |
| src/backend/postmaster/postmaster.c | modified | +2 −2 |
| src/include/common/ip.h | modified | +0 −6 |
| src/interfaces/libpq/fe-connect.c | modified | +7 −7 |
Discussion
- Remove IS_AF_UNIX macro? 1 message · 2022-02-07