aboutsummaryrefslogtreecommitdiff
path: root/src/backend/libpq/auth.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-11-09 15:20:47 +0100
committerPeter Eisentraut <peter@eisentraut.org>2021-11-09 15:35:26 +0100
commitee3a1a5b636b69dde33d68c428dd56b3389a4538 (patch)
tree6943325f2baa9e3e70994b3edd79ea5534ed6ba7 /src/backend/libpq/auth.c
parent4cd046c203bbca2955182f78eabc06e831ffdbb1 (diff)
downloadpostgresql-ee3a1a5b636b69dde33d68c428dd56b3389a4538.tar.gz
postgresql-ee3a1a5b636b69dde33d68c428dd56b3389a4538.zip
Remove check for accept() argument types
This check was used to accommodate a staggering variety in particular in the type of the third argument of accept(). This is no longer of concern on currently supported systems. We can just use socklen_t in the code and put in a simple check that substitutes int for socklen_t if it's missing, to cover the few stragglers. Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/3538f4c4-1886-64f2-dcff-aaad8267fb82@enterprisedb.com
Diffstat (limited to 'src/backend/libpq/auth.c')
-rw-r--r--src/backend/libpq/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c
index a317aef1c92..7bcf52523b4 100644
--- a/src/backend/libpq/auth.c
+++ b/src/backend/libpq/auth.c
@@ -3026,7 +3026,7 @@ PerformRadiusTransaction(const char *server, const char *secret, const char *por
struct addrinfo hint;
struct addrinfo *serveraddrs;
int port;
- ACCEPT_TYPE_ARG3 addrsize;
+ socklen_t addrsize;
fd_set fdset;
struct timeval endtime;
int i,