svn commit: r327934 - head/sys/contrib/zstd/lib/freebsd

O. Hartmann ohartmann at walstatt.org
Sat Jan 13 18:33:55 UTC 2018


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

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

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

regards,

oh

-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 313 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20180113/d91788d1/attachment.sig>


More information about the svn-src-head mailing list