X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftty%2Flib_twait.c;h=ec9daae80390e8d272711dc49bd1befffa959676;hp=440e4101408abdf42a9bd429d9bea1ce55298ead;hb=6209b84e2f9cc5a53527760499be2cba5fc4e95c;hpb=1051e5f924808ea27fcf8f5b624e63d07788b86e diff --git a/ncurses/tty/lib_twait.c b/ncurses/tty/lib_twait.c index 440e4101..ec9daae8 100644 --- a/ncurses/tty/lib_twait.c +++ b/ncurses/tty/lib_twait.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc. * + * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -62,15 +62,7 @@ # endif #endif -MODULE_ID("$Id: lib_twait.c,v 1.53 2007/05/12 19:02:31 tom Exp $") - -#if HAVE_GETTIMEOFDAY -# define PRECISE_GETTIME 1 -# define TimeType struct timeval -#else -# define PRECISE_GETTIME 0 -# define TimeType time_t -#endif +MODULE_ID("$Id: lib_twait.c,v 1.55 2008/03/01 22:08:31 tom Exp $") static long _nc_gettime(TimeType * t0, bool first) @@ -152,7 +144,7 @@ _nc_timed_wait(int mode, { int fd; int count; - int result; + int result = 0; TimeType t0; #ifdef NCURSES_WGETCH_EVENTS