/*	$OpenBSD: zopenbsd.c,v 1.4 2015/01/20 04:41:01 krw Exp $	*/
#include <sys/types.h>
#include <sys/malloc.h>
#include <lib/libz/zutil.h>

/*
 * Space allocation and freeing routines for use by zlib routines.
 */
void *
zcalloc(notused, items, size)
    void *notused;
    u_int items, size;
{
    return mallocarray(items, size, M_DEVBUF, M_NOWAIT);
}

void
zcfree(notused, ptr)
    void *notused;
    void *ptr;
{
    free(ptr, M_DEVBUF, 0);
}

#include <sys/types.h>
#include <sys/malloc.h>
#include <lib/libz/zutil.h>

/*
 * Space allocation and freeing routines for use by zlib routines.
 */
void *
zcalloc(notused, items, size)
    void *notused;
    u_int items, size;
{
    return mallocarray(items, size, M_DEVBUF, M_NOWAIT);
}

void
zcfree(notused, ptr)
    void *notused;
    void *ptr;
{
    free(ptr, M_DEVBUF, 0);
}

Revert some $OpenBSD$ additions about which there are doubts.
Revert some $OpenBSD$ additions about which there are doubts.

Suggested by deraadt@
