Revision 7a2105be lib/xmalloc.c

View differences:

lib/xmalloc.c
1 1
/*
2 2
 *	BIRD Library -- malloc() With Checking
3 3
 *
4
 *	(c) 1998 Martin Mares <mj@ucw.cz>
4
 *	(c) 1998--1999 Martin Mares <mj@ucw.cz>
5 5
 *
6 6
 *	Can be freely distributed and used under the terms of the GNU GPL.
7 7
 */
......
11 11
#include "nest/bird.h"
12 12
#include "lib/resource.h"
13 13

  
14
#ifndef HAVE_LIBDMALLOC
15

  
14 16
void *
15 17
xmalloc(unsigned size)
16 18
{
......
19 21
    return p;
20 22
  die("Unable to allocate %d bytes of memory", size);
21 23
}
24

  
25
#endif

Also available in: Unified diff