Revision 7a2105be lib/resource.c

View differences:

lib/resource.c
8 8

  
9 9
#include <stdio.h>
10 10
#include <stdlib.h>
11
#include <string.h>
11 12

  
12 13
#include "nest/bird.h"
13 14
#include "lib/resource.h"
......
156 157
  return b->data;
157 158
}
158 159

  
160
void *
161
mb_allocz(pool *p, unsigned size)
162
{
163
  void *x = mb_alloc(p, size);
164
  bzero(x, size);
165
  return x;
166
}
167

  
159 168
void
160 169
mb_free(void *m)
161 170
{

Also available in: Unified diff