1
0
Fork 0
forked from len0rd/rockbox

imxtools/sbtools: various fixes

Change bug() macro, fix memory leaks, always use -h for help, fix usage(),
fix comment, remove useless macro

Change-Id: I30554b5e07e6f2845560a570808603cf8c4da5ad
This commit is contained in:
Amaury Pouly 2017-01-01 19:46:01 +01:00
parent 2b20026dd7
commit 5ff3a3a98f
6 changed files with 39 additions and 24 deletions

View file

@ -50,7 +50,11 @@ void generate_random_data(void *buf, size_t sz)
void *xmalloc(size_t s)
{
void * r = malloc(s);
if(!r) bugp("malloc");
if(!r)
{
printf("Alloc failed\n");
abort();
}
return r;
}