aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-09 16:10:58 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-09 16:10:58 +0000
commit15722ba3948b9c8b86eca5c43fcb590305d83865 (patch)
tree93fb646bc492bd7fcb3e73ea62c4fa17e72ee68d
parent1413fd46bcbd4a05c3e46113fbd7ae11b3d4a40a (diff)
downloadfetchmail-15722ba3948b9c8b86eca5c43fcb590305d83865.tar.gz
fetchmail-15722ba3948b9c8b86eca5c43fcb590305d83865.tar.bz2
fetchmail-15722ba3948b9c8b86eca5c43fcb590305d83865.zip
Put timeout default in configuration file.
svn path=/trunk/; revision=261
-rw-r--r--driver.c9
-rw-r--r--fetchmail.h2
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