From c532788db43d3b8bac1e2732db59f3d9b391fcc1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 12 Jun 2001 20:08:05 +0000 Subject: Move some global data where it belongs. svn path=/trunk/; revision=3348 --- driver.c | 6 ++++++ transact.c | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/driver.c b/driver.c index 5a5a876f..d2a7b9d2 100644 --- a/driver.c +++ b/driver.c @@ -48,6 +48,12 @@ #define THROW_TIMEOUT 1 /* server timed out */ #define THROW_SIGPIPE 2 /* SIGPIPE on stream socket */ +int pass; /* how many times have we re-polled? */ +int stage; /* where are we? */ +int phase; /* where are we, for error-logging purposes? */ +int batchcount; /* count of messages sent in current batch */ +flag peek_capable; /* can we peek for better error recovery? */ + static int timeoutcount; /* count consecutive timeouts */ static jmp_buf restart; diff --git a/transact.c b/transact.c index 42145978..68c8d399 100644 --- a/transact.c +++ b/transact.c @@ -37,11 +37,6 @@ extern char *strstr(); /* needed on sysV68 R3V7.1. */ #endif /* strstr */ -int batchcount; /* count of messages sent in current batch */ -flag peek_capable; /* can we peek for better error recovery? */ -int pass; /* how many times have we re-polled? */ -int stage; /* where are we? */ -int phase; /* where are we, for error-logging purposes? */ int mytimeout; /* value of nonreponse timeout */ int suppress_tags; /* emit tags? */ char shroud[PASSWORDLEN]; /* string to shroud in debug output */ -- cgit v1.2.3