taskset: use xalloc lib

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
This commit is contained in:
Davidlohr Bueso 2011-05-09 11:18:32 -04:00 committed by Karel Zak
parent 7439604895
commit dd29a76293
1 changed files with 2 additions and 3 deletions

View File

@ -28,6 +28,7 @@
#include "cpuset.h"
#include "nls.h"
#include "strutils.h"
#include "xalloc.h"
#include "c.h"
static void __attribute__((__noreturn__)) usage(FILE *out)
@ -120,9 +121,7 @@ int main(int argc, char *argv[])
err(EXIT_FAILURE, _("cpuset_alloc failed"));
buflen = 7 * cur_nbits;
buf = malloc(buflen);
if (!buf)
err(EXIT_FAILURE, _("malloc failed"));
buf = xmalloc(buflen);
/*
* new_set is always used for the sched_setaffinity call