From 8df350bfde7487e9064f4140b11eb7ad96f04536 Mon Sep 17 00:00:00 2001 From: millert Date: Sat, 31 Oct 1998 06:30:28 +0000 Subject: update to ncurses 4.2-981017 --- lib/libcurses/lib_initscr.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'lib/libcurses/lib_initscr.c') diff --git a/lib/libcurses/lib_initscr.c b/lib/libcurses/lib_initscr.c index 2e09588b491..8f9400788c4 100644 --- a/lib/libcurses/lib_initscr.c +++ b/lib/libcurses/lib_initscr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lib_initscr.c,v 1.5 1998/09/13 19:16:27 millert Exp $ */ +/* $OpenBSD: lib_initscr.c,v 1.6 1998/10/31 06:30:29 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998 Free Software Foundation, Inc. * @@ -47,14 +47,13 @@ #include /* needed for ISC */ #endif -MODULE_ID("$From: lib_initscr.c,v 1.23 1998/08/09 00:18:48 tom Exp $") +MODULE_ID("$From: lib_initscr.c,v 1.25 1998/09/19 21:39:25 tom Exp $") WINDOW *initscr(void) { static bool initialized = FALSE; NCURSES_CONST char *name; -char *p; -long l; +int value; T((T_CALLED("initscr()"))); /* Portable applications must not call initscr() more than once */ @@ -70,11 +69,8 @@ long l; } /* allow user to set maximum escape delay from the environment */ - if ((name = getenv("ESCDELAY")) != 0) { - l = strtol(name, &p, 10); - if (p != name && *p == '\0' && l != LONG_MIN && - l <= INT_MAX) - ESCDELAY = (int)l; + if ((value = _nc_getenv_num("ESCDELAY")) >= 0) { + ESCDELAY = value; } /* def_shell_mode - done in newterm/_nc_setupscreen */ -- cgit v1.2.3-59-g8ed1b