diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2021-11-09 15:20:47 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2021-11-09 15:35:26 +0100 |
commit | ee3a1a5b636b69dde33d68c428dd56b3389a4538 (patch) | |
tree | 6943325f2baa9e3e70994b3edd79ea5534ed6ba7 /src/interfaces/libpq/fe-connect.c | |
parent | 4cd046c203bbca2955182f78eabc06e831ffdbb1 (diff) |
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/interfaces/libpq/fe-connect.c')
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index f0fdd294a40..9b6a6939f07 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -2744,7 +2744,7 @@ keep_going: /* We will come back to here until there is case CONNECTION_STARTED: { - ACCEPT_TYPE_ARG3 optlen = sizeof(optval); + socklen_t optlen = sizeof(optval); /* * Write ready, since we've made it here, so the connection |