Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
#include <ip.h>
4
#include <thread.h>
5
#include "netbios.h"
6
 
7
void *
8
nbemalloc(ulong nbytes)
9
{
10
	void *p;
11
	p = malloc(nbytes);
12
	if (p == nil) {
13
		print("nbemalloc: failed\n");
14
		threadexitsall("mem");
15
	}
16
	return p;
17
}