]> err.no Git - util-linux/commitdiff
column: replace errs.h with libc err.h
authorKarel Zak <kzak@redhat.com>
Mon, 15 Oct 2007 13:04:41 +0000 (15:04 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Oct 2007 10:31:10 +0000 (12:31 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/column.c

index 4e6193fb468c6d3876fee5c54843eee9d60d964c..f5d41a2c992ab346a177d43a8db1031689de088e 100644 (file)
@@ -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);
 }