summaryrefslogtreecommitdiff
path: root/bin/csh/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/csh/misc.c')
-rw-r--r--bin/csh/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/csh/misc.c b/bin/csh/misc.c
index dec792e01c0..3ed9312ae57 100644
--- a/bin/csh/misc.c
+++ b/bin/csh/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.2 1996/06/23 14:19:26 deraadt Exp $ */
+/* $OpenBSD: misc.c,v 1.3 1996/06/29 19:10:00 deraadt Exp $ */
/* $NetBSD: misc.c,v 1.6 1995/03/21 09:03:09 cgd Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: misc.c,v 1.2 1996/06/23 14:19:26 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: misc.c,v 1.3 1996/06/29 19:10:00 deraadt Exp $";
#endif
#endif /* not lint */
@@ -259,7 +259,7 @@ closem()
{
register int f;
- for (f = 0; f < NOFILE; f++)
+ for (f = 0; f < sysconf(_SC_OPEN_MAX); f++)
if (f != SHIN && f != SHOUT && f != SHERR && f != OLDSTD &&
f != FSHTTY)
(void) close(f);