From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CD0301584AD for ; Fri, 18 Apr 2025 20:52:00 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 37AEB342F94 for ; Fri, 18 Apr 2025 20:50:40 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 3026A110105; Fri, 18 Apr 2025 20:50:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 21B7A110105 for ; Fri, 18 Apr 2025 20:50:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CF2ED34306E for ; Fri, 18 Apr 2025 20:50:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 36B9919F6 for ; Fri, 18 Apr 2025 20:50:37 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1745009416.6ece6b56bb33e8972d76b96848c0155fefc9772f.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: qgrep.c X-VCS-Directories: / X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 6ece6b56bb33e8972d76b96848c0155fefc9772f X-VCS-Branch: master Date: Fri, 18 Apr 2025 20:50:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4d3de225-d899-4b22-9adb-b8304419aa90 X-Archives-Hash: 465bcda291fdeb1c2b5d082fefd6fe1d commit: 6ece6b56bb33e8972d76b96848c0155fefc9772f Author: Emanuele Torre gmail com> AuthorDate: Thu Sep 5 11:39:35 2024 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Fri Apr 18 20:50:16 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=6ece6b56 qgrep: fix -Wcalloc-transposed-args warning I get this warning when compiling portage-utils with gcc (Gentoo 14.2.1_p20240817 p4) 14.2.1 20240817 Closes: https://github.com/gentoo/portage-utils/pull/30 Signed-off-by: Emanuele Torre gmail.com> Signed-off-by: Fabian Groffen gentoo.org> qgrep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qgrep.c b/qgrep.c index 699f35b..ad7a126 100644 --- a/qgrep.c +++ b/qgrep.c @@ -555,7 +555,7 @@ int qgrep_main(int argc, char **argv) if (argc > (optind + 1)) { depend_atom **d = args.include_atoms = - xcalloc(sizeof(depend_atom *), (argc - optind - 1) + 1); + xcalloc((argc - optind - 1) + 1, sizeof(depend_atom *)); for (i = (optind + 1); i < argc; i++) { *d = atom_explode(argv[i]); if (*d == NULL) {