Mercurial > ~dholland > hg > tradcpp > index.cgi
diff utils.c @ 143:ed45f2d8d3bc
Don't use the <err.h> functions.
There are still people out there using legacy systems that are missing
them.
author | David A. Holland |
---|---|
date | Sat, 13 Jul 2013 12:47:20 -0400 (2013-07-13) |
parents | 60184aa42604 |
children | d6e6b3940780 |
line wrap: on
line diff
--- a/utils.c Sat Jul 13 12:38:54 2013 -0400 +++ b/utils.c Sat Jul 13 12:47:20 2013 -0400 @@ -30,7 +30,6 @@ #include <stdlib.h> #include <string.h> #include <assert.h> -#include <err.h> #include "utils.h" @@ -125,7 +124,7 @@ blocklen = adjustsize(len); ret = malloc(blocklen); if (ret == NULL) { - warnx("Out of memory"); + complain(NULL, "Out of memory"); die(); } @@ -144,7 +143,7 @@ ret = realloc(blockptr, newblocklen); if (ret == NULL) { - warnx("Out of memory"); + complain(NULL, "Out of memory"); die(); }