From patchwork Tue Dec 1 20:38:26 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 5834 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:6022:91c9:10b0:11b:d6c:f273 with SMTP id tl9-n1csp15309974lad; Tue, 1 Dec 2026 12:38:42 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErEmMu4O101Ja26KYq69Zluaqe1xUGQIuDqSdNIFv42sa7zOn5IgLhcJw9ZqRAq3PgvtDwSnYRRLNz0=@openvpn.net X-Received: by 2002:a05:6808:2211:b0:4d6:90d4:6bc with SMTP id 5614622812f47-57a0ba53115mr37869997b6e.46.1796157522577; Tue, 01 Dec 2026 12:38:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796157522; cv=none; d=google.com; s=arc-20260327; b=qI92sgHgvlNaXtABXOMe+W2DQLKQbvqrtvj4zBC5PGtGLfTlZ2XyR4NnWl7WlPk4Ha AoV8wDxbvOYUgYir4VXhlbCbn03g9JSs8dZqiQYUhEJRkM+qY9g2iRTW2pe9gj/0c/no qXL6YU7IB86vjDy2RDXcxqRuTUm/kSKTxccu6L4JNdEJcZttW6C8tmbwEoByVlZ/MG+H O2SViQiif8sNgpBtnlPsi3kbAEm7uQZuoKLPfJwLzV7QZ0PsU8hlQ/cnTTGFHPDZs+RK NFxF/SCA4Bc2WXU/SeICxxigXSPDPhCWJIZnn77zcpg70GdaV+rULxe7WoO9H4Lzu9A3 8t0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-signature:dkim-signature; bh=ulGmKaZUbLlYjrdabAhZ/5piSS4Lm4NcsCB9Z/No06g=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=a8fycqvV/qHMtijOc3780HIbMSYGsW0f1qnsWudGHFTlS72pyUylqFb6YVwREUdCB3 ujA/PraXlLfJQLz/GPJFUq0fj45XvyLNoIW0UsLpxFDvsRebJC6HWhn86KmVArj5dFq6 awLR46aNqxR6BdjQBjd8BsyOT/zcup1ryRpIHsCplAshuAIFL2NfHYjHF87Zl6UD6R2d q3okob7oG3o4dqPu0FCc0hOK3AhOQgyzNlKz6q3JpMhd/a8W0aTL4bUJmp/qj7oh1l9p icfVI1nb5FUg798g0Dj19ia9dg0XUntQSYaSRgPgU0RdvWJu482s80hzLV0SYkPLIbWa /ueg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=bOjQJHNV; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=KXxsFMSj; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=l7LF0hNN; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id 586e51a60fabf-4bc6293fa1bsi61167736fac.286.2026.12.01.12.38.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Dec 2026 12:38:42 -0800 (PST) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=bOjQJHNV; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=KXxsFMSj; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=l7LF0hNN; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=ulGmKaZUbLlYjrdabAhZ/5piSS4Lm4NcsCB9Z/No06g=; b=bOjQJHNVPZGTrt /5cvNNS4fdtltJd6jHO5XM5AKt+ut/gQyTILumcmt7CEEvjx6W64PR2IKX9ksesQY4vpqlpb0OL3e iE9xqNoZlzf3IBzOUjA9Cp48+CmBRTxCu0AFUzuPBcGQ+BhaSZgR9f1up1akxn2E5nqKhRCJuLVtd YNk=; Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.100.1) (envelope-from ) id 1xYUcb-000000003Ux-3AbJ; Tue, 01 Dec 2026 20:38:41 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xYUca-000000003Ur-2ZNi for openvpn-devel@lists.sourceforge.net; Tue, 01 Dec 2026 20:38:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4XAo9SERYcPlSPEtZ41IZ+GzQ/yNRuXBsE5Sipfs/6k=; b=KXxsFMSjvQmmBryNhbVLyyZgDw SynlmcH+sTs6aAeCmJaRK/DiWV/xoosA8jDw2AcrQXfrsAV2pzjJXYMHwB9hPAsHwaLgTNXVIbBgY IzL2/8hXoEO0LYDIO/od+HgYTXvfhlyqy0OfE8cU2y027nlFWTIftok09V67aidZwjOU=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4XAo9SERYcPlSPEtZ41IZ+GzQ/yNRuXBsE5Sipfs/6k=; b=l7LF0hNNBix5fxM0TUo0l1dHUw BbnZEpGq4cYAAmu3iIOl7iA9PHCiyiFoDpgFprF6dyyxSsznC6/Q3KMUGOdxG5lqvtuOiTomKwp/T 9k/VRA1GUdHRKvE02cGeJfOVLMrcKM2i3650IHEz6kVF1My4a7+A0ctXhoUWEgxmUV3s=; Received: from [193.149.48.129] (helo=blue.greenie.muc.de) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1) id 1xYUcY-000000004S1-3tvR for openvpn-devel@lists.sourceforge.net; Tue, 01 Dec 2026 20:38:40 +0000 Received: from blue.greenie.muc.de (localhost [127.0.0.1]) by blue.greenie.muc.de (8.18.1/8.18.1) with ESMTP id 6B1KcW2b004799 for ; Tue, 1 Dec 2026 21:38:32 +0100 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 6B1KcWv8004798 for openvpn-devel@lists.sourceforge.net; Tue, 1 Dec 2026 21:38:32 +0100 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Tue, 1 Dec 2026 21:38:26 +0100 Message-ID: <20261201203831.4783-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "sfi-spamd-2.hosts.colo.sdot.me", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Frank Lichtenheld ioctlsocket takes a long but at least MinGW defines the ioctl numbers as unsigned long, so a cast is required. Change-Id: Ie5d209e05b6882ef679e5c5d95711c8f416515d6 Signed-off-by: Frank Lichtenheld Acked-by: Razvan Cojocaru Gerrit URL: https://gerrit.openvpn.net/c/o [...] Content analysis details: (1.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Headers-End: 1xYUcY-000000004S1-3tvR Subject: [Openvpn-devel] [PATCH v2] fdmisc: Avoid sign conversion warning on Windows X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: 1883407670773604382 X-GMAIL-MSGID: 1883407670773604382 From: Frank Lichtenheld ioctlsocket takes a long but at least MinGW defines the ioctl numbers as unsigned long, so a cast is required. Change-Id: Ie5d209e05b6882ef679e5c5d95711c8f416515d6 Signed-off-by: Frank Lichtenheld Acked-by: Razvan Cojocaru Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2379 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2379 This mail reflects revision 2 of this Change. Acked-by according to Gerrit (reflected above): Razvan Cojocaru diff --git a/src/openvpn/fdmisc.c b/src/openvpn/fdmisc.c index e715964..e9d310f 100644 --- a/src/openvpn/fdmisc.c +++ b/src/openvpn/fdmisc.c @@ -31,18 +31,13 @@ #include "memdbg.h" -#if defined(_WIN32) && (defined(__GNUC__) || defined(__clang__)) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wsign-conversion" -#endif - /* Set a file descriptor to non-blocking */ bool set_nonblock_action(socket_descriptor_t fd) { #ifdef _WIN32 u_long arg = 1; - if (ioctlsocket(fd, FIONBIO, &arg)) + if (ioctlsocket(fd, (long)FIONBIO, &arg)) { return false; } @@ -55,10 +50,6 @@ return true; } -#if defined(_WIN32) && (defined(__GNUC__) || defined(__clang__)) -#pragma GCC diagnostic pop -#endif - /* Set a file descriptor to not be passed across execs */ bool set_cloexec_action(socket_descriptor_t fd)