summaryrefslogtreecommitdiffstats
path: root/text-utils/column.c
diff options
context:
space:
mode:
authorKarel Zak2007-10-15 15:04:41 +0200
committerKarel Zak2007-10-16 12:31:10 +0200
commite42dd65bc33ee81b057ae63b98b2ff66032179f2 (patch)
tree85a4b1a8934981e663619aa9f072384716bcbed0 /text-utils/column.c
parentmesg: replace errs.h with libc err.h (diff)
downloadkernel-qcow2-util-linux-e42dd65bc33ee81b057ae63b98b2ff66032179f2.tar.gz
kernel-qcow2-util-linux-e42dd65bc33ee81b057ae63b98b2ff66032179f2.tar.xz
kernel-qcow2-util-linux-e42dd65bc33ee81b057ae63b98b2ff66032179f2.zip
column: replace errs.h with libc err.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils/column.c')
-rw-r--r--text-utils/column.c8
1 files 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 <unistd.h>
#include <stdlib.h>
#include <string.h>
-#include "errs.h"
+#include <err.h>
#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);
}