aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vbackup/util.c
blob: 0a46a7a006952958ad86d1fcb6e031bb59531fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <u.h>
#include <libc.h>
#include <diskfs.h>

void*
emalloc(ulong n)
{
	void *v;

	v = mallocz(n, 1);
	if(v == nil)
		abort();
	return v;
}

void*
erealloc(void *v, ulong n)
{
	v = realloc(v, n);
	if(v == nil)
		abort();
	return v;
}