aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2018-01-13 18:09:09 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2018-01-13 18:09:09 +0000
commitd195572171e075b6bfd838ea21a4be07fef0c0ca (patch)
tree57ed2c648fe9f731f5a015f23b3211ea1c0b5fd9
parent233933cb004b4c6a378046774c85f917f77cacfd (diff)
Notes
-rw-r--r--sys/contrib/zstd/lib/freebsd/zstd_kfreebsd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/zstd/lib/freebsd/zstd_kfreebsd.h b/sys/contrib/zstd/lib/freebsd/zstd_kfreebsd.h
index af01d4ecf371..6f9adba03c05 100644
--- a/sys/contrib/zstd/lib/freebsd/zstd_kfreebsd.h
+++ b/sys/contrib/zstd/lib/freebsd/zstd_kfreebsd.h
@@ -46,7 +46,7 @@ MALLOC_DECLARE(M_ZSTD);
#define malloc(x) (malloc)((x), M_ZSTD, M_WAITOK)
#define free(x) (free)((x), M_ZSTD)
/* in zstd's use of calloc, a is always 1 */
-#define calloc(a,b) (malloc)((a)*(b), M_ZSTD, M_WAITOK | M_ZERO)
+#define calloc(a,b) (mallocarray)((a), (b), M_ZSTD, M_WAITOK | M_ZERO)
#endif
#ifdef __cplusplus