diff options
| author | lukem <lukem@NetBSD.org> | 1999-09-20 04:38:56 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 1999-09-20 04:38:56 +0000 |
| commit | d896261208b4610b0c4e86ea95caad3cdc86a4ac (patch) | |
| tree | 9a96db945c9ffba191e3aa4d741cf5d30fbd30f2 /lib/libterm | |
| parent | f6ae64deff8e64a1acb3e1536bf6b6d06f7bffb9 (diff) | |
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
Diffstat (limited to 'lib/libterm')
| -rw-r--r-- | lib/libterm/termcap.c | 20 | ||||
| -rw-r--r-- | lib/libterm/tputs.c | 8 |
2 files changed, 4 insertions, 24 deletions
diff --git a/lib/libterm/termcap.c b/lib/libterm/termcap.c index de59eef2193..104ae63f71e 100644 --- a/lib/libterm/termcap.c +++ b/lib/libterm/termcap.c @@ -1,4 +1,4 @@ -/* $NetBSD: termcap.c,v 1.21 1999/09/16 11:45:49 lukem Exp $ */ +/* $NetBSD: termcap.c,v 1.22 1999/09/20 04:48:05 lukem Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)termcap.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: termcap.c,v 1.21 1999/09/16 11:45:49 lukem Exp $"); +__RCSID("$NetBSD: termcap.c,v 1.22 1999/09/20 04:48:05 lukem Exp $"); #endif #endif /* not lint */ @@ -101,10 +101,6 @@ t_getent(bp, name) _DIAGASSERT(bp != NULL); _DIAGASSERT(name != NULL); -#ifdef _DIAGNOSTIC - if (bp == NULL || name == NULL) - return (-2); -#endif if ((*bp = malloc(sizeof(struct tinfo))) == NULL) return 0; @@ -233,10 +229,6 @@ t_getnum(info, id) long num; _DIAGASSERT(id != NULL); -#ifdef _DIAGNOSTIC - if (id == NULL) - return (-1); -#endif if (cgetnum(info->info, id, &num) == 0) return (int)(num); @@ -270,10 +262,6 @@ tgetflag(id) { _DIAGASSERT(id != NULL); -#ifdef _DIAGNOSTIC - if (id == NULL) - return (-1); -#endif return t_getflag(fbuf, id); } @@ -300,10 +288,6 @@ t_getstr(info, id, area, limit) _DIAGASSERT(id != NULL); _DIAGASSERT(area != NULL); -#ifdef _DIAGNOSTIC - if (id == NULL || area == NULL) - return (NULL); -#endif /* * XXX diff --git a/lib/libterm/tputs.c b/lib/libterm/tputs.c index 397ccf26940..e9f842274f6 100644 --- a/lib/libterm/tputs.c +++ b/lib/libterm/tputs.c @@ -1,4 +1,4 @@ -/* $NetBSD: tputs.c,v 1.12 1999/09/16 11:45:49 lukem Exp $ */ +/* $NetBSD: tputs.c,v 1.13 1999/09/20 04:48:06 lukem Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)tputs.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: tputs.c,v 1.12 1999/09/16 11:45:49 lukem Exp $"); +__RCSID("$NetBSD: tputs.c,v 1.13 1999/09/20 04:48:06 lukem Exp $"); #endif #endif /* not lint */ @@ -116,10 +116,6 @@ tputs(cp, affcnt, outc) int mspc10; _DIAGASSERT(outc != 0); -#ifdef _DIAGNOSTIC - if (outc == 0) - return; -#endif if (cp == 0) return; |
