From e42dd65bc33ee81b057ae63b98b2ff66032179f2 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 15 Oct 2007 15:04:41 +0200 Subject: [PATCH] column: replace errs.h with libc err.h Signed-off-by: Karel Zak --- text-utils/column.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/text-utils/column.c b/text-utils/column.c index 4e6193fb4..f5d41a2c9 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); }