summaryrefslogtreecommitdiff
path: root/lib/libc/string/__strerror.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1999-09-20 04:38:56 +0000
committerlukem <lukem@NetBSD.org>1999-09-20 04:38:56 +0000
commitd896261208b4610b0c4e86ea95caad3cdc86a4ac (patch)
tree9a96db945c9ffba191e3aa4d741cf5d30fbd30f2 /lib/libc/string/__strerror.c
parentf6ae64deff8e64a1acb3e1536bf6b6d06f7bffb9 (diff)
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
Diffstat (limited to 'lib/libc/string/__strerror.c')
-rw-r--r--lib/libc/string/__strerror.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libc/string/__strerror.c b/lib/libc/string/__strerror.c
index 8c0f81bb63e..59cee14a006 100644
--- a/lib/libc/string/__strerror.c
+++ b/lib/libc/string/__strerror.c
@@ -1,4 +1,4 @@
-/* $NetBSD: __strerror.c,v 1.15 1999/09/16 11:45:37 lukem Exp $ */
+/* $NetBSD: __strerror.c,v 1.16 1999/09/20 04:39:43 lukem Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
@@ -38,7 +38,7 @@
#if 0
static char *sccsid = "@(#)strerror.c 5.6 (Berkeley) 5/4/91";
#else
-__RCSID("$NetBSD: __strerror.c,v 1.15 1999/09/16 11:45:37 lukem Exp $");
+__RCSID("$NetBSD: __strerror.c,v 1.16 1999/09/20 04:39:43 lukem Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -74,10 +74,6 @@ __strerror(num, buf, buflen)
catd = catopen("libc", 0);
#endif
_DIAGASSERT(buf != NULL);
-#ifdef _DIAGNOSTIC
- if (buf == NULL)
- return (NULL);
-#endif
errnum = num; /* convert to unsigned */
if (errnum < sys_nerr) {