From patchwork Wed May 4 01:31:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arne Schwabe X-Patchwork-Id: 2432 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director10.mail.ord1d.rsapps.net ([172.28.255.1]) by backend41.mail.ord1d.rsapps.net with LMTP id CCbLEH9kcmLrKQAAqwncew (envelope-from ) for ; Wed, 04 May 2022 07:33:19 -0400 Received: from proxy3.mail.ord1c.rsapps.net ([172.28.255.1]) by director10.mail.ord1d.rsapps.net with LMTP id oMBhH39kcmIzRAAApN4f7A (envelope-from ) for ; Wed, 04 May 2022 07:33:19 -0400 Received: from smtp35.gate.ord1c ([172.28.255.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy3.mail.ord1c.rsapps.net with LMTPS id 6OCzHn9kcmK4YwAANIxBXg (envelope-from ) for ; Wed, 04 May 2022 07:33:19 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp35.gate.ord1c.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dmarc=none (p=nil; dis=none) header.from=rfc2549.org X-Suspicious-Flag: YES X-Classification-ID: fea1b336-cb9d-11ec-84e5-5452002f485d-1-1 Received: from [216.105.38.7] ([216.105.38.7:58206] helo=lists.sourceforge.net) by smtp35.gate.ord1c.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 28/B6-17519-E7462726; Wed, 04 May 2022 07:33:19 -0400 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.94.2) (envelope-from ) id 1nmDEv-0007Vc-93; Wed, 04 May 2022 11:32:17 +0000 Received: from [172.30.20.202] (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.94.2) (envelope-from ) id 1nmDEt-0007V3-90 for openvpn-devel@lists.sourceforge.net; Wed, 04 May 2022 11:32:15 +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: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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NgPuKKm60Vq62LWpcgS5FO/Nn6h4XMr2YNAUSfEZNs8=; b=CKS3NzhVQmYn8hR/WTMkeTlUBe oZMwewSmS7Qh4hoFCacanZg3zVY/34/hzu0odb1bhfpvxCs7abJ7VhprUpmcVFco8XSIkXjAKKoC/ QY1zkFeDH9Wr8K20PgTfadOvX6YvSwXJzYuJLZbs6TCu+q6Py/Qk6HclrooR6tWnvGig=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version: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:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=NgPuKKm60Vq62LWpcgS5FO/Nn6h4XMr2YNAUSfEZNs8=; b=j 1SlWcrCp6X2jqP9ZgM2ncmWaklHmkWy6YTmPI0LcsNzO/ujn3lZPiOCXnc+9aZc4UIpZ521olhv7O DtdHOMZXWhFB1duOros/sqcVExKDBwkePX+Tv7cUAiW+S2GaMmVip3E75A6zzMripKJpeYoGiNAUl sbb8zcTGAkPcz+eg=; Received: from [192.26.174.232] (helo=mail.blinkt.de) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.94.2) id 1nmDEs-0004uM-Hj for openvpn-devel@lists.sourceforge.net; Wed, 04 May 2022 11:32:15 +0000 Received: from kamera.blinkt.de ([2001:638:502:390:20c:29ff:fec8:535c]) by mail.blinkt.de with smtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1nmDEc-00056v-6P for openvpn-devel@lists.sourceforge.net; Wed, 04 May 2022 13:31:58 +0200 Received: (nullmailer pid 1051907 invoked by uid 10006); Wed, 04 May 2022 11:31:58 -0000 From: Arne Schwabe To: openvpn-devel@lists.sourceforge.net Date: Wed, 4 May 2022 13:31:58 +0200 Message-Id: <20220504113158.1051861-1-arne@rfc2549.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Report: Spam detection software, running on the system "util-spamd-1.v13.lw.sourceforge.com", 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: Today even 32 bit platform generally use a 64bit size_t but Android armeabi-v7a is an expection to that and uses a 32bit size_t. Use z as correct specifier for a size_t. Clang complained about this: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat] Content analysis details: (1.5 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_NONE SPF: sender does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Headers-End: 1nmDEs-0004uM-Hj Subject: [Openvpn-devel] [PATCH] Fix format specifier for printing size_t on 32bit size_t platforms 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 Today even 32 bit platform generally use a 64bit size_t but Android armeabi-v7a is an expection to that and uses a 32bit size_t. Use z as correct specifier for a size_t. Clang complained about this: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat] Signed-off-by: Arne Schwabe Acked-by: Gert Doering --- src/openvpn/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvpn/init.c b/src/openvpn/init.c index 3085e97b..e7d39645 100644 --- a/src/openvpn/init.c +++ b/src/openvpn/init.c @@ -2431,7 +2431,7 @@ get_frame_mtu(struct context *c, const struct options *o) if (mtu < TUN_MTU_MIN) { - msg(M_WARN, "TUN MTU value (%lu) must be at least %d", mtu, TUN_MTU_MIN); + msg(M_WARN, "TUN MTU value (%zu) must be at least %d", mtu, TUN_MTU_MIN); frame_print(&c->c2.frame, M_FATAL, "MTU is too small"); } return mtu;