From patchwork Sun Nov 16 13:59:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 4605 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7000:6d04:b0:7b1:439f:bdf with SMTP id e4csp2684710may; Sun, 16 Nov 2025 05:59:20 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX5k4Wm200XAA/Q0eJ1nGHwLM2quSyU6zddQ/vjPj8tz63IOnNnrkfTx5UStubzV5ZLJuj6yIwuzao=@openvpn.net X-Google-Smtp-Source: AGHT+IHrnZc15jeTqtYaFhgfPjjMpzTJcpotzXfMAsuUdQ/KZnSWzgDHHgI/CnV+19Yj+NC4rpeH X-Received: by 2002:a05:6870:a1a5:b0:3ac:5502:b501 with SMTP id 586e51a60fabf-3e8691090c7mr4512219fac.23.1763301560317; Sun, 16 Nov 2025 05:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1763301560; cv=none; d=google.com; s=arc-20240605; b=NBT9Y4MzRlC71mtfafaWaCiLJ/FfmklX8PpIc7MiuAr2If/NKL0hC+I+qkAr2ksNRh 2Y2cXk0VjxtMVuAy/D/1RO/PqePVj+jSahBQlGu6X+w5I4SxTg3WUu2XOzN+6ZdKh1Df jsmC02tRPRLyfdmVuR0anC3cpe4wXzSyuyNUPYRQfZgtEUEAyWUi5bd8RH3gFjPNRAAJ 423/qXHhJo0KNU2Yt4eYrt34wAvAgQw7RslmqHSIjNZBcracScBKdjNmRinYfMYrJmvV 25xh3Xfa7IiJIc/eVAhtBrCKqnOces4n2sMCt32HSOBONnjVYpBpT0a5GZTGTD74be74 6ESw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=QS9OUDsgoL5MnJKeF4o4Cel5rIk+zIDEOPGz9fTPChM=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=C98HzDy0EaAZNyx9+Gj/NLSe5h1peDNI7nIIlMFDcQ1KasrxXXHgt10X5SottvkJl9 bQR/L47j0ibw4YC/he5/T7DfO9x4XbWI21O+Rwm7nZRpupRedWnZiPXHpcS7A4E2tMil ebrN1keFcTwe6yQWtuNbGCpKunEDfLVnZJr9jrMJRz4ekp3bNUwtml9oD9BLMlJyXYLs hyg3dCK9V+5YqPm/GftP8/i0N43guks6MSA+c3vfkY2OLkJyKvTRyFbmWZ/iEVZbeoWA 1HpOVHdfEeG3tJBRSpqynbvOomjiV/8DJneYaiBqbpQ4UuDr3xuTv7/S4r1OO5cMYtBN I58g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b="fUuofB/3"; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=IFNgPfIi; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=X4HCzZOr; 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-3ec324096d7si551790fac.175.2025.11.16.05.59.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Nov 2025 05:59:20 -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="fUuofB/3"; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=IFNgPfIi; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=X4HCzZOr; 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-Owner; bh=QS9OUDsgoL5MnJKeF4o4Cel5rIk+zIDEOPGz9fTPChM=; b=fUuofB/36YyDYIpXlIqE/Is8Zg QyETpEGI5tacaINyJlGnTxYcMYsaWZZy74ZKpOAHHDN6mBNF7wDp+AD3AtH6nl85OAXw/oO/1kJmr RJFah0dOCEcc4XwtjObhdtE2DIbx86tndCOUlkhDulD2RmwH9apQBxcoWUz4/xozgQv4=; Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1vKdHi-0000ES-4L; Sun, 16 Nov 2025 13:59:18 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1vKdHg-0000EK-Sg for openvpn-devel@lists.sourceforge.net; Sun, 16 Nov 2025 13:59:16 +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-Subscribe:List-Post:List-Owner:List-Archive; bh=VWDCaOMRjAM5CZO/mCQneRS0Gqx/wvm3Ae//UVJI0B0=; b=IFNgPfIivIyOfqyYaYnzOL+2mH CTYkG2elZm55qZgmuMj5PMWVLYw/5cu8V2PMXj3AfLd4L4CuMI4CABVyyJMkd44ATfVVPhvBOnsvc SZQQl/NGpjkhLTgzVGIOD3pNtKal1c/zo7QZ7+4fmVq5eGBTGaxG1gx2qxQ19ccpzBWU=; 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-Subscribe: List-Post:List-Owner:List-Archive; bh=VWDCaOMRjAM5CZO/mCQneRS0Gqx/wvm3Ae//UVJI0B0=; b=X4HCzZOrQufZgW2lUci8o1LbIQ Pjl43nF5DLJMt741acT+pvamNuf2c4Rp2Jt78ZPbCfaK7J1J41/zkjBInycTK3Xbp7O4hj+WbKcCu Eaf9a7xSyLLjyxBnwoQBg6YzdFTLM+VFvbqcAeRX7geNds8tmDh9hiWNFKcbSHc9kBqU=; Received: from [193.149.48.134] (helo=blue.greenie.muc.de) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1vKdHg-0006gD-4v for openvpn-devel@lists.sourceforge.net; Sun, 16 Nov 2025 13:59:16 +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 5AGDx9rE015980 for ; Sun, 16 Nov 2025 14:59:09 +0100 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.1/8.18.1/Submit) id 5AGDx9dm015979 for openvpn-devel@lists.sourceforge.net; Sun, 16 Nov 2025 14:59:09 +0100 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Sun, 16 Nov 2025 14:59:04 +0100 Message-ID: <20251116135909.15964-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.49.1 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 Use correct return type of the function. Change-Id: I445b2e2cd14e55cc1ae3efdf1650b28e18992aa5 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/open [...] 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: 1vKdHg-0006gD-4v Subject: [Openvpn-devel] [PATCH v5] interval: Fix conversion warning 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: =?utf-8?q?1848955696876728214?= X-GMAIL-MSGID: =?utf-8?q?1848955696876728214?= From: Frank Lichtenheld Use correct return type of the function. Change-Id: I445b2e2cd14e55cc1ae3efdf1650b28e18992aa5 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1291 --- 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/+/1291 This mail reflects revision 5 of this Change. Acked-by according to Gerrit (reflected above): Gert Doering diff --git a/src/openvpn/interval.c b/src/openvpn/interval.c index fbefcd9..f9953a6 100644 --- a/src/openvpn/interval.c +++ b/src/openvpn/interval.c @@ -38,11 +38,6 @@ top->horizon = horizon; } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wconversion" -#endif - bool event_timeout_trigger(struct event_timeout *et, struct timeval *tv, const int et_const_retry) { @@ -52,7 +47,7 @@ } bool ret = false; - time_t wakeup = event_timeout_remaining(et); + interval_t wakeup = event_timeout_remaining(et); if (wakeup <= 0) { @@ -82,7 +77,3 @@ } return ret; } - -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif