1132451Sroberto/*
2132451Sroberto * Copyright (c) 2005 Kungliga Tekniska H��gskolan
3132451Sroberto * (Royal Institute of Technology, Stockholm, Sweden).
4285612Sdelphij * All rights reserved.
5132451Sroberto *
6285612Sdelphij * Redistribution and use in source and binary forms, with or without
7132451Sroberto * modification, are permitted provided that the following conditions
8285612Sdelphij * are met:
9285612Sdelphij *
10132451Sroberto * 1. Redistributions of source code must retain the above copyright
11285612Sdelphij *    notice, this list of conditions and the following disclaimer.
12132451Sroberto *
13132451Sroberto * 2. Redistributions in binary form must reproduce the above copyright
14132451Sroberto *    notice, this list of conditions and the following disclaimer in the
15132451Sroberto *    documentation and/or other materials provided with the distribution.
16132451Sroberto *
17132451Sroberto * 3. Neither the name of the Institute nor the names of its contributors
18132451Sroberto *    may be used to endorse or promote products derived from this software
19132451Sroberto *    without specific prior written permission.
20132451Sroberto *
21285612Sdelphij * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
22132451Sroberto * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23132451Sroberto * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24285612Sdelphij * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
25132451Sroberto * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26285612Sdelphij * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27132451Sroberto * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28132451Sroberto * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29285612Sdelphij * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30285612Sdelphij * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31285612Sdelphij * SUCH DAMAGE.
32285612Sdelphij */
33285612Sdelphij
34285612Sdelphij#include <config.h>
35285612Sdelphij#undef realloc
36285612Sdelphij
37285612Sdelphij#include <stdlib.h>
38285612Sdelphij#include "roken.h"
39293650Sglebius
40132451SrobertoROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL
41293650Sglebiusrk_realloc(void *ptr, size_t size)
42293650Sglebius{
43285612Sdelphij    if (ptr == NULL)
44285612Sdelphij	return malloc(size);
45285612Sdelphij    return realloc(ptr, size);
46285612Sdelphij}
47293650Sglebius