diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-06-17 20:53:59 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-06-17 20:53:59 +0000 |
commit | 4932ce893f57f7e30912b2cd803310b4dfaa6346 (patch) | |
tree | daf6540ec325975a306f25da2845c658a794666f /usr.bin/col | |
parent | e2e637f42b48f486ff5a9afe135b823cade3ee75 (diff) |
(foo *)NULL -> NULL + err msg for realloc failure
Diffstat (limited to 'usr.bin/col')
-rw-r--r-- | usr.bin/col/col.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/col/col.c b/usr.bin/col/col.c index 835b6d8b512..eb9933896f3 100644 --- a/usr.bin/col/col.c +++ b/usr.bin/col/col.c @@ -1,4 +1,4 @@ -/* $OpenBSD: col.c,v 1.3 1997/01/15 23:42:20 millert Exp $ */ +/* $OpenBSD: col.c,v 1.4 1997/06/17 20:53:58 kstailey Exp $ */ /* $NetBSD: col.c,v 1.7 1995/09/02 05:48:50 jtc Exp $ */ /*- @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)col.c 8.5 (Berkeley) 5/4/95"; #endif -static char rcsid[] = "$OpenBSD: col.c,v 1.3 1997/01/15 23:42:20 millert Exp $"; +static char rcsid[] = "$OpenBSD: col.c,v 1.4 1997/06/17 20:53:58 kstailey Exp $"; #endif /* not lint */ #include <ctype.h> @@ -487,7 +487,7 @@ alloc_line() int i; if (!line_freelist) { - l = (LINE *)xmalloc((void *)NULL, sizeof(LINE) * NALLOC); + l = (LINE *)xmalloc(NULL, sizeof(LINE) * NALLOC); line_freelist = l; for (i = 1; i < NALLOC; i++, l++) l->l_next = l + 1; @@ -516,7 +516,7 @@ xmalloc(p, size) { if (!(p = (void *)realloc(p, size))) - err(1, NULL); + err(1, "realloc failed"); return (p); } |