/* for chroot and program execution */
char atrcfilename[81], *spool, *p, *auth = NULL;
unsigned int len;
- int c;
+ int c, i;
int nhext = 0, nhauth = 0;
int userchoice;
#ifndef HAVE_SETPROCTITLE
/* save argc, argv */
char** saved_argv;
- int saved_argc, i;
+ int saved_argc;
saved_argc = argc;
static int kq = -1;
#endif
struct timeval w = { 0, 100000 };
+ struct timeval origw = { 0, 100000 };
int counter = 0;
fd_set readfs;
struct termios t;
FD_ZERO (&readfs);
FD_SET (STDIN_FILENO, &readfs);
n = select (1, &readfs, NULL, NULL, &w);
+ w = origw;
doread = n >= 1 && FD_ISSET (0, &readfs);
}
if (n == -1)