From: Karel Zak Date: Mon, 15 Oct 2007 13:04:41 +0000 (+0200) Subject: column: replace errs.h with libc err.h X-Git-Tag: v2.14-rc1~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e42dd65bc33ee81b057ae63b98b2ff66032179f2;p=thirdparty%2Futil-linux.git column: replace errs.h with libc err.h Signed-off-by: Karel Zak --- diff --git a/text-utils/column.c b/text-utils/column.c index 4e6193fb46..f5d41a2c99 100644 --- a/text-utils/column.c +++ b/text-utils/column.c @@ -47,7 +47,7 @@ #include #include #include -#include "errs.h" +#include #include "nls.h" #include "widechar.h" @@ -251,7 +251,7 @@ maketbl() * sizeof(wchar_t *))) || !(lens = realloc(lens, ((u_int)maxcols + DEFCOLS) * sizeof(int)))) - err_nomsg(1); + err(1, NULL); memset((char *)lens + maxcols * sizeof(int), 0, DEFCOLS * sizeof(int)); maxcols += DEFCOLS; @@ -306,7 +306,7 @@ input(fp) maxentry += DEFNUM; if (!(list = realloc(list, (u_int)maxentry * sizeof(wchar_t *)))) - err_nomsg(1); + err(1, NULL); } list[entries++] = wcsdup(buf); } @@ -361,7 +361,7 @@ emalloc(size) char *p; if (!(p = malloc(size))) - err_nomsg(1); + err(1, NULL); memset(p, 0, size); return (p); }