From nobody Fri Jan 27 17:45:56 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P3Q3S2y42z3bLRP; Fri, 27 Jan 2023 17:45:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P3Q3S2RlVz3wPJ; Fri, 27 Jan 2023 17:45:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674841556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t95fYWpW8EYpuaQy8xdSSk+kgUe8DpSKiV1Dkdj+nDU=; b=Ju6IXZ4pkiuUaPyaoW0kfS29CsLpnoIKoIaKZ5op/rwFF9z68sxEvsgRkYxWJN+Dw7p4Ar NNqChdAW1exCUxERPirpL/o7kVmTM8jgm+AryW9UwMU7lFV6+6SPcT3QSyyEEfkocyNuuc m9VoaHuIA/P4CXxeTVxE4dR0vT6MYWUfyxSPdipkXlYgL98DABpF5C977zHQptf9WD2xCd jcVX+wgeGOac6odde3EneaUyyi7jotIuNjC+j01wb24J4rte9bahkH4H5UhKkxrRFUyMD0 TxD+rQt38ovpe8/dYoaT2mXxRGvn2fFxEs3a5fqiJCKUDMtSMXd5AprAfArIAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674841556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t95fYWpW8EYpuaQy8xdSSk+kgUe8DpSKiV1Dkdj+nDU=; b=xpi90+HH9x4cVv2/3n+P06vmXfx1i+Y+wp0UOwkmKlbxPajKW5BRTeBeFGUYomOegGprYT 46rIIudDgN6qyU3WdZAhGsCLC6al94YjM+I+IeTIvYepICJ1F8PpKnhzlsyc87QkA/bN9s mXZ8x9zwy4FyoLzA6z1rc3f5y37kP0QBKiInHE4oZLSLnHS8uCYjtJ7X0LCkAqpG6y6TTQ 5pGdzuNn/sEfm2BXqcShVSrvxvyx1QHJTUMMIxXRshrc6OGhcVBmyhOOcjZtDuD3rF+Aag JRqpYiuE3DQWElVTwPsO/Kq//y3c9ZQZouHQw9JNA3VswbnlF5Ufx6t9CsDT4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674841556; a=rsa-sha256; cv=none; b=Ky3VI3cod1Ui5jEgobmBh1OhPKR30KUCqkxvZXPP8W7OTWL1zftheAo1YdLz28Vgb1uQ9N 3SnCJCAW+CPm72b1MXpOkfWIy8QKUPkNqa3ymOPLpm20/V4rD0jj2vDdgOiWPnkFY6OUh5 wTip5piWiLeFgCdwwKgSvAKABsRdiK/2wO+Nwh0V1NT/U159HSJimZwW7UidQ5qBMpJZP9 7sTYUabYj0FCZ/RBktYKEHrRn5TZq52vJSbPRR4FlLXNkTjd7sF4nPYe82td0W5cdfylv2 K3gORYIEjJs5edNoWe+GjJyIlJLf0j8utTxCyP9JUnsooXqjY2OM2ROog40siw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P3Q3S1WXJzJQs; Fri, 27 Jan 2023 17:45:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30RHjusn086146; Fri, 27 Jan 2023 17:45:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30RHjuep086145; Fri, 27 Jan 2023 17:45:56 GMT (envelope-from git) Date: Fri, 27 Jan 2023 17:45:56 GMT Message-Id: <202301271745.30RHjuep086145@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: 79111aa26f8b - main - netstat: fix format string on 32-bit archs List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 79111aa26f8b33a6f4870d2666aa6e9b9d2fdc15 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=79111aa26f8b33a6f4870d2666aa6e9b9d2fdc15 commit 79111aa26f8b33a6f4870d2666aa6e9b9d2fdc15 Author: Alexander V. Chernikov AuthorDate: 2023-01-27 17:45:19 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-01-27 17:45:49 +0000 netstat: fix format string on 32-bit archs --- usr.bin/netstat/route_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/netstat/route_netlink.c b/usr.bin/netstat/route_netlink.c index 7c0ac8fea30c..e4a56af4b8a9 100644 --- a/usr.bin/netstat/route_netlink.c +++ b/usr.bin/netstat/route_netlink.c @@ -129,7 +129,7 @@ prepare_ifmap_netlink(struct snl_state *ss, size_t *pifmap_size) if (link.ifi_index >= ifmap_size) { size_t size = roundup2(link.ifi_index + 1, 32) * sizeof(struct ifmap_entry); if ((ifmap = realloc(ifmap, size)) == NULL) - errx(2, "realloc(%lu) failed", size); + errx(2, "realloc(%zu) failed", size); memset(&ifmap[ifmap_size], 0, size - ifmap_size * sizeof(struct ifmap_entry));