diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/calendar/io.c | 6 | ||||
-rw-r--r-- | usr.bin/ctags/tree.c | 6 | ||||
-rw-r--r-- | usr.bin/deroff/deroff.c | 10 | ||||
-rw-r--r-- | usr.bin/du/du.c | 6 |
4 files changed, 14 insertions, 14 deletions
diff --git a/usr.bin/calendar/io.c b/usr.bin/calendar/io.c index f611016b69e..7b2f301eb22 100644 --- a/usr.bin/calendar/io.c +++ b/usr.bin/calendar/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.25 2004/01/14 23:54:11 millert Exp $ */ +/* $OpenBSD: io.c,v 1.26 2004/06/02 14:58:46 tom Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -39,7 +39,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94"; #else -static char rcsid[] = "$OpenBSD: io.c,v 1.25 2004/01/14 23:54:11 millert Exp $"; +static char rcsid[] = "$OpenBSD: io.c,v 1.26 2004/06/02 14:58:46 tom Exp $"; #endif #endif /* not lint */ @@ -178,7 +178,7 @@ cal(void) int len = l1 + l2 + 2; if ((cur_evt->ldesc = malloc(len)) == NULL) - err(1, "malloc"); + err(1, NULL); snprintf(cur_evt->ldesc, len, "\t%s %s", prefix, p + 1); } else if ((cur_evt->ldesc = diff --git a/usr.bin/ctags/tree.c b/usr.bin/ctags/tree.c index d8dcd6c4642..36b1dae463d 100644 --- a/usr.bin/ctags/tree.c +++ b/usr.bin/ctags/tree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tree.c,v 1.6 2003/06/12 20:58:09 deraadt Exp $ */ +/* $OpenBSD: tree.c,v 1.7 2004/06/02 14:58:46 tom Exp $ */ /* $NetBSD: tree.c,v 1.4 1995/03/26 20:14:11 glass Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)tree.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: tree.c,v 1.6 2003/06/12 20:58:09 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: tree.c,v 1.7 2004/06/02 14:58:46 tom Exp $"; #endif #endif /* not lint */ @@ -68,7 +68,7 @@ pfnote(char *name, int ln) free_tree(head); /*NOSTRICT*/ if (!(head = np = (NODE *)malloc(sizeof(NODE)))) - err(1, "out of space"); + err(1, NULL); } if (!xflag && !strcmp(name, "main")) { if (!(fp = strrchr(curfile, '/'))) diff --git a/usr.bin/deroff/deroff.c b/usr.bin/deroff/deroff.c index 8dceff32a9e..1563d0e0aa1 100644 --- a/usr.bin/deroff/deroff.c +++ b/usr.bin/deroff/deroff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: deroff.c,v 1.5 2003/06/03 02:56:07 millert Exp $ */ +/* $OpenBSD: deroff.c,v 1.6 2004/06/02 14:58:46 tom Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -72,7 +72,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)deroff.c 8.1 (Berkeley) 6/6/93"; #else -static const char rcsid[] = "$OpenBSD: deroff.c,v 1.5 2003/06/03 02:56:07 millert Exp $"; +static const char rcsid[] = "$OpenBSD: deroff.c,v 1.6 2004/06/02 14:58:46 tom Exp $"; #endif #endif /* not lint */ @@ -447,11 +447,11 @@ getfname(void) q = (struct chain *) malloc(sizeof(struct chain)); if (q == NULL) - err(1, "malloc"); + err(1, NULL); q->nextp = namechain; q->datap = strdup(fname); if (q->datap == NULL) - err(1, "strdup"); + err(1, NULL); namechain = q; } @@ -1598,7 +1598,7 @@ buildtab(struct mactab **r_back, int *r_size) size += sizetab(p2); back = (struct mactab *)calloc(size+2, sizeof(struct mactab)); if (back == NULL) - err(1, "calloc"); + err(1, NULL); p = macfill(back, troffmactab); p = macfill(p, ppmactab); diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c index 9d08df612ca..433bb896159 100644 --- a/usr.bin/du/du.c +++ b/usr.bin/du/du.c @@ -1,4 +1,4 @@ -/* $OpenBSD: du.c,v 1.14 2003/07/02 21:04:09 deraadt Exp $ */ +/* $OpenBSD: du.c,v 1.15 2004/06/02 14:58:46 tom Exp $ */ /* $NetBSD: du.c,v 1.11 1996/10/18 07:20:35 thorpej Exp $ */ /* @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)du.c 8.5 (Berkeley) 5/4/95"; #else -static char rcsid[] = "$OpenBSD: du.c,v 1.14 2003/07/02 21:04:09 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: du.c,v 1.15 2004/06/02 14:58:46 tom Exp $"; #endif #endif /* not lint */ @@ -242,7 +242,7 @@ linkchk(FTSENT *p) if (nfiles == maxfiles && (files = realloc((char *)files, (u_int)(sizeof(ID) * (maxfiles += 128)))) == NULL) - err(1, "can't allocate memory"); + err(1, NULL); files[nfiles].inode = ino; files[nfiles].dev = dev; ++nfiles; |