static struct tab *
lookup __P((struct tab *, char *));
static void sizecmd __P((char *));
-static void toolong __P((int));
static int yylex __P((void));
static struct tab *
return (s);
}
-static void
+void
toolong(signo)
int signo;
{
-/* $OpenBSD: ftpd.c,v 1.25 1996/12/03 03:07:17 deraadt Exp $ */
+/* $OpenBSD: ftpd.c,v 1.26 1996/12/07 09:00:22 bitblt Exp $ */
/* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */
/*
struct sockaddr_in from;
int s, fromlen = sizeof(from);
+ signal (SIGALRM, toolong);
+ (void) alarm ((unsigned) timeout);
s = accept(pdata, (struct sockaddr *)&from, &fromlen);
+ (void) alarm (0);
if (s < 0) {
reply(425, "Can't open data connection.");
(void) close(pdata);