From 2ddb62319803f6a3f3246a52b4e009d9ae1daaed Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 18 Dec 2022 17:51:35 +0000 Subject: Use in_port_t instead of int/unsigned int/long. --- src/modules/m_gateway.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_gateway.cpp') diff --git a/src/modules/m_gateway.cpp b/src/modules/m_gateway.cpp index a43e3ee9b..4e3bdc843 100644 --- a/src/modules/m_gateway.cpp +++ b/src/modules/m_gateway.cpp @@ -480,7 +480,7 @@ public: if (cport != flags->end()) { // If we can't parse the port then just give up. - uint16_t port = ConvToNum(cport->second); + in_port_t port = ConvToNum(cport->second); if (port) { switch (user->client_sa.family()) @@ -506,7 +506,7 @@ public: if (sport != flags->end()) { // If we can't parse the port then just give up. - uint16_t port = ConvToNum(sport->second); + in_port_t port = ConvToNum(sport->second); if (port) { switch (user->server_sa.family()) -- cgit v1.3.1-10-gc9f91