Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 2018 19:33:12 +0100
From:      "O. Hartmann" <ohartmann@walstatt.org>
To:        "Pedro F. Giffuni" <pfg@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r327934 - head/sys/contrib/zstd/lib/freebsd
Message-ID:  <20180113193339.549bf55a@thor.intern.walstatt.dynvpn.de>
In-Reply-To: <201801131809.w0DI9AZw072646@repo.freebsd.org>
References:  <201801131809.w0DI9AZw072646@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/zrACyMS6vy8QRQ5v5SB5uA5
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Am Sat, 13 Jan 2018 18:09:10 +0000 (UTC)
"Pedro F. Giffuni" <pfg@FreeBSD.org> schrieb:

> Author: pfg
> Date: Sat Jan 13 18:09:09 2018
> New Revision: 327934
> URL: https://svnweb.freebsd.org/changeset/base/327934
>=20
> Log:
>   zstd: Use memalloc(9) for calloc macro.
>  =20
>   This is in contrib code but since we only have memalloc(9) in current we
>   will not upstream this.
>=20
> Modified:
>   head/sys/contrib/zstd/lib/freebsd/zstd_kfreebsd.h
>=20
> Modified: head/sys/contrib/zstd/lib/freebsd/zstd_kfreebsd.h
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/sys/contrib/zstd/lib/freebsd/zstd_kfreebsd.h	Sat Jan 13 17:56:46
> 2018	(r327933) +++ head/sys/contrib/zstd/lib/freebsd/zstd_kfreebsd.h	Sat
> Jan 13 18:09:09 2018	(r327934) @@ -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
> =20
>  #ifdef __cplusplus
> _______________________________________________
> svn-src-head@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org"

You reference "memalloc(9)" - but on recent CURRENT, there is no such manpa=
ge available.

regards,

oh

--=20
O. Hartmann

Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BCr
Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 Abs.=
 4 BDSG).

--Sig_/zrACyMS6vy8QRQ5v5SB5uA5
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWlpRAwAKCRDS528fyFhY
lL3xAf4i6fhl2Bch0g8mGPTfUJpGpKWLwcI9SO3bHr3nDjNiwVpBneC2zNmeTLsd
NdP/YbiyahDR09SyFhtlDtIXueMHAgCOL06LhqtT9jdCzo/OIwiGrmvOZhvJt749
Nf9W5YFU6j5LLLt5gb/vzKkTSz0fIHcWIkDmfSicojZSwwh0P8Cj
=4Oux
-----END PGP SIGNATURE-----

--Sig_/zrACyMS6vy8QRQ5v5SB5uA5--



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