mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Improve compatibility with C++ consumers
C++ is a little picky about not using keywords for names, or string constness. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Jorgen Lundman <lundman@lundman.net> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #10409
This commit is contained in:
@@ -145,7 +145,7 @@ umem_cache_create(
|
||||
{
|
||||
umem_cache_t *cp;
|
||||
|
||||
cp = umem_alloc(sizeof (umem_cache_t), UMEM_DEFAULT);
|
||||
cp = (umem_cache_t *)umem_alloc(sizeof (umem_cache_t), UMEM_DEFAULT);
|
||||
if (cp) {
|
||||
strlcpy(cp->cache_name, name, UMEM_CACHE_NAMELEN);
|
||||
cp->cache_bufsize = bufsize;
|
||||
|
||||
Reference in New Issue
Block a user