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/libutil/ttymsg.c | |
| parent | f6ae64deff8e64a1acb3e1536bf6b6d06f7bffb9 (diff) | |
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
Diffstat (limited to 'lib/libutil/ttymsg.c')
| -rw-r--r-- | lib/libutil/ttymsg.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/libutil/ttymsg.c b/lib/libutil/ttymsg.c index 3cf87a51167..cc50fb51ac6 100644 --- a/lib/libutil/ttymsg.c +++ b/lib/libutil/ttymsg.c @@ -1,4 +1,4 @@ -/* $NetBSD: ttymsg.c,v 1.13 1999/09/16 11:45:51 lukem Exp $ */ +/* $NetBSD: ttymsg.c,v 1.14 1999/09/20 04:48:11 lukem Exp $ */ /* * Copyright (c) 1989, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)ttymsg.c 8.2 (Berkeley) 11/16/93"; #else -__RCSID("$NetBSD: ttymsg.c,v 1.13 1999/09/16 11:45:51 lukem Exp $"); +__RCSID("$NetBSD: ttymsg.c,v 1.14 1999/09/20 04:48:11 lukem Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -81,14 +81,6 @@ ttymsg(iov, iovcnt, line, tmout) _DIAGASSERT(iov != NULL); _DIAGASSERT(iovcnt >= 0); _DIAGASSERT(line != NULL); -#ifdef _DIAGNOSTIC - if (iov == NULL) - return ("ttymsg(3) called with iov == NULL"); - if (iovcnt < 0) - return ("ttymsg(3) called with iovcnt < 0"); - if (line == NULL) - return ("ttymsg(3) called with line == NULL"); -#endif if (iovcnt > sizeof(localiov) / sizeof(localiov[0])) return ("too many iov's (change code in libutil/ttymsg.c)"); |
