git: bf427a09b617 - main - libalias: quiet gcc -Wcalloc-transposed-args
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Oct 2025 22:58:25 UTC
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