Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Oct 2025 22:58:25 GMT
From:      Ryan Libby <rlibby@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: bf427a09b617 - main - libalias: quiet gcc -Wcalloc-transposed-args
Message-ID:  <202510172258.59HMwP5k048145@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by rlibby:

URL: https://cgit.FreeBSD.org/src/commit/?id=bf427a09b617b60068af65a4c14632fea4ef7dda

commit bf427a09b617b60068af65a4c14632fea4ef7dda
Author:     Ryan Libby <rlibby@FreeBSD.org>
AuthorDate: 2025-10-17 22:43:06 +0000
Commit:     Ryan Libby <rlibby@FreeBSD.org>
CommitDate: 2025-10-17 22:43:06 +0000

    libalias: quiet gcc -Wcalloc-transposed-args
    
    Reviewed by:    phk
    Differential Revision:  https://reviews.freebsd.org/D53151
---
 sys/netinet/libalias/alias_db.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/libalias/alias_db.c b/sys/netinet/libalias/alias_db.c
index c143d74a2f45..41f0a328daec 100644
--- a/sys/netinet/libalias/alias_db.c
+++ b/sys/netinet/libalias/alias_db.c
@@ -2181,7 +2181,7 @@ LibAliasInit(struct libalias *la)
 #undef malloc	/* XXX: ugly */
 		la = malloc(sizeof *la, M_ALIAS, M_WAITOK | M_ZERO);
 #else
-		la = calloc(sizeof *la, 1);
+		la = calloc(1, sizeof *la);
 		if (la == NULL)
 			return (la);
 #endif


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510172258.59HMwP5k048145>