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/pidlock.c | |
| parent | f6ae64deff8e64a1acb3e1536bf6b6d06f7bffb9 (diff) | |
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
Diffstat (limited to 'lib/libutil/pidlock.c')
| -rw-r--r-- | lib/libutil/pidlock.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/lib/libutil/pidlock.c b/lib/libutil/pidlock.c index 85b644d6165..394b9635c55 100644 --- a/lib/libutil/pidlock.c +++ b/lib/libutil/pidlock.c @@ -1,4 +1,4 @@ -/* $NetBSD: pidlock.c,v 1.7 1999/09/16 11:45:51 lukem Exp $ */ +/* $NetBSD: pidlock.c,v 1.8 1999/09/20 04:48:08 lukem Exp $ */ /* * Copyright 1996, 1997 by Curt Sampson <cjs@netbsd.org>. @@ -24,7 +24,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: pidlock.c,v 1.7 1999/09/16 11:45:51 lukem Exp $"); +__RCSID("$NetBSD: pidlock.c,v 1.8 1999/09/20 04:48:08 lukem Exp $"); #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -63,12 +63,6 @@ pidlock(lockfile, flags, locker, info) _DIAGASSERT(lockfile != NULL); /* locker may be NULL */ /* info may be NULL */ -#ifdef _DIAGNOSTIC - if (lockfile == NULL) { - errno = EFAULT; - return -1; - } -#endif if (gethostname(hostname, sizeof(hostname))) @@ -212,12 +206,6 @@ ttylock(tty, flags, locker) _DIAGASSERT(tty != NULL); /* locker is not used */ -#ifdef _DIAGNOSTIC - if (tty == NULL || *tty == '\0') { - errno = ENOENT; - return -1; - } -#endif /* make sure the tty exists */ strcpy(ttyfile, DEVPATH); @@ -244,12 +232,6 @@ ttyunlock(tty) struct stat sb; _DIAGASSERT(tty != NULL); -#ifdef _DIAGNOSTIC - if (tty == NULL || *tty == '\0') { - errno = ENOENT; - return -1; - } -#endif /* make sure the tty exists */ strcpy(ttyfile, DEVPATH); |
