I stumbled across this while studying calloc() calls in the tree.
ok?
Index: column.c
===================================================================
RCS file: /cvs/src/usr.bin/column/column.c,v
retrieving revision 1.25
diff -u -p -r1.25 column.c
--- column.c 4 Sep 2016 20:33:36 -0000 1.25
+++ column.c 22 Jun 2018 02:34:24 -0000
@@ -46,7 +46,6 @@
void c_columnate(void);
void *ereallocarray(void *, size_t, size_t);
-void *ecalloc(size_t, size_t);
void input(FILE *);
void maketbl(void);
void print(void);
@@ -339,16 +338,6 @@ void *
ereallocarray(void *ptr, size_t nmemb, size_t size)
{
if ((ptr = reallocarray(ptr, nmemb, size)) == NULL)
- err(1, NULL);
- return ptr;
-}
-
-void *
-ecalloc(size_t nmemb, size_t size)
-{
- void *ptr;
-
- if ((ptr = calloc(nmemb, size)) == NULL)
err(1, NULL);
return ptr;
}