From 119e35614b012afb46517d0ee704fa960283adf8 Mon Sep 17 00:00:00 2001 From: anon Date: Wed, 30 Aug 2023 20:41:52 +0200 Subject: [PATCH] Use the alias socklen_t for portability --- cgi.d | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cgi.d b/cgi.d index 76ddc1d..0780958 100644 --- a/cgi.d +++ b/cgi.d @@ -8844,11 +8844,7 @@ void runAddonServer(EIS)(string localListenerName, EIS eis) if(is(EIS : EventIoS void newConnection() { // on edge triggering, it is important that we get it all while(true) { - version(Android) { - auto size = cast(int) addr.sizeof; - } else { - auto size = cast(uint) addr.sizeof; - } + auto size = cast(socklen_t) addr.sizeof; auto ns = accept(sock, cast(sockaddr*) &addr, &size); if(ns == -1) { if(errno == EAGAIN || errno == EWOULDBLOCK) {