1*33ce21e2Sdyoung /* $NetBSD: ppath_malloc.c,v 1.1 2011/08/25 14:55:36 dyoung Exp $ */
2*33ce21e2Sdyoung /* $Id: ppath_malloc.c,v 1.1 2011/08/25 14:55:36 dyoung Exp $ */
3*33ce21e2Sdyoung /*-
4*33ce21e2Sdyoung * Copyright (c) 2011 The NetBSD Foundation, Inc.
5*33ce21e2Sdyoung * All rights reserved.
6*33ce21e2Sdyoung *
7*33ce21e2Sdyoung * This code is derived from software contributed to The NetBSD Foundation
8*33ce21e2Sdyoung * by David Young <dyoung@NetBSD.org>.
9*33ce21e2Sdyoung *
10*33ce21e2Sdyoung * Redistribution and use in source and binary forms, with or without
11*33ce21e2Sdyoung * modification, are permitted provided that the following conditions
12*33ce21e2Sdyoung * are met:
13*33ce21e2Sdyoung * 1. Redistributions of source code must retain the above copyright
14*33ce21e2Sdyoung * notice, this list of conditions and the following disclaimer.
15*33ce21e2Sdyoung * 2. Redistributions in binary form must reproduce the above copyright
16*33ce21e2Sdyoung * notice, this list of conditions and the following disclaimer in the
17*33ce21e2Sdyoung * documentation and/or other materials provided with the distribution.
18*33ce21e2Sdyoung *
19*33ce21e2Sdyoung * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20*33ce21e2Sdyoung * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21*33ce21e2Sdyoung * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22*33ce21e2Sdyoung * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23*33ce21e2Sdyoung * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24*33ce21e2Sdyoung * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25*33ce21e2Sdyoung * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26*33ce21e2Sdyoung * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27*33ce21e2Sdyoung * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28*33ce21e2Sdyoung * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29*33ce21e2Sdyoung * POSSIBILITY OF SUCH DAMAGE.
30*33ce21e2Sdyoung */
31*33ce21e2Sdyoung
32*33ce21e2Sdyoung #include <sys/cdefs.h>
33*33ce21e2Sdyoung __RCSID("$Id: ppath_malloc.c,v 1.1 2011/08/25 14:55:36 dyoung Exp $");
34*33ce21e2Sdyoung
35*33ce21e2Sdyoung #include <stdlib.h>
36*33ce21e2Sdyoung
37*33ce21e2Sdyoung #include <ppath/ppath_impl.h>
38*33ce21e2Sdyoung
39*33ce21e2Sdyoung void *
ppath_alloc(size_t size)40*33ce21e2Sdyoung ppath_alloc(size_t size)
41*33ce21e2Sdyoung {
42*33ce21e2Sdyoung return calloc(1, size);
43*33ce21e2Sdyoung }
44*33ce21e2Sdyoung
45*33ce21e2Sdyoung /*ARGSUSED*/
46*33ce21e2Sdyoung void
ppath_free(void * p,size_t size)47*33ce21e2Sdyoung ppath_free(void *p, size_t size)
48*33ce21e2Sdyoung {
49*33ce21e2Sdyoung free(p);
50*33ce21e2Sdyoung }
51