From 15722ba3948b9c8b86eca5c43fcb590305d83865 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 9 Oct 1996 16:10:58 +0000 Subject: Put timeout default in configuration file. svn path=/trunk/; revision=261 --- driver.c | 9 +++------ fetchmail.h | 2 ++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/driver.c b/driver.c index 0336af84..2bd471e9 100644 --- a/driver.c +++ b/driver.c @@ -25,15 +25,12 @@ #include "fetchmail.h" #include "smtp.h" +#define SMTP_PORT 25 /* standard SMTP service port */ + static struct method *protocol; static int alarmed; /* A flag to indicate that SIGALRM happened */ - -int timeout=300; /* Wake up from idle state */ -void alarm_handler(); - - -#define SMTP_PORT 25 /* standard SMTP service port */ +int timeout = CLIENT_TIMEOUT; char tag[TAGLEN]; static int tagnum; diff --git a/fetchmail.h b/fetchmail.h index ef9d8b55..364c8bf9 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -142,5 +142,7 @@ void optmerge(); #endif +void alarm_handler(); + #define FALSE 0 #define TRUE 1 -- cgit v1.2.3