Signed-off-by: Karel Zak <kzak@redhat.com>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
-#include "errs.h"
+#include <err.h>
#include "nls.h"
#include "widechar.h"
* 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;
maxentry += DEFNUM;
if (!(list = realloc(list,
(u_int)maxentry * sizeof(wchar_t *))))
- err_nomsg(1);
+ err(1, NULL);
}
list[entries++] = wcsdup(buf);
}
char *p;
if (!(p = malloc(size)))
- err_nomsg(1);
+ err(1, NULL);
memset(p, 0, size);
return (p);
}