From a2389b61cd8a3344a68cfb0be777a40da7d9bb0b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 19 Sep 1997 15:42:35 +0000 Subject: Compilation cleanups. svn path=/trunk/; revision=1374 --- NEWS | 3 +++ env.c | 6 ++---- etrn.c | 1 + fetchmail.c | 4 ++-- fetchmail.h | 2 +- interface.c | 2 ++ 6 files changed, 11 insertions(+), 7 deletions(-) diff --git a/NEWS b/NEWS index 2ec24b38..fb24924d 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,9 @@ Release Notes: ------------------------------------------------------------------------------ +fetchmail-4.2.4 (Thu Sep 18 16:19:10 EDT 1997) +* Small compilation cleanups, thanks to Florian laRoche. + fetchmail-4.2.3 (Thu Sep 18 16:19:10 EDT 1997) * Fix a bug in IMAP message-size retrieval. * Yet another try at getting the size-consistency check right. diff --git a/env.c b/env.c index 06f9da67..874a094d 100644 --- a/env.c +++ b/env.c @@ -7,6 +7,7 @@ #include "config.h" #include "fetchmail.h" #include +#include #if defined(STDC_HEADERS) #include #endif @@ -22,16 +23,13 @@ extern char *getenv(); /* needed on sysV68 R3V7.1. */ -char *user, *home, *fetchmailhost; - extern char *program_name; void envquery(int argc, char **argv) /* set up basic stuff from the environment (including the rc file name) */ { - char *tmpdir, tmpbuf[BUFSIZ]; + char tmpbuf[BUFSIZ]; struct passwd *pw; - struct query *ctl; if ((program_name = strrchr(argv[0], '/')) != NULL) ++program_name; diff --git a/etrn.c b/etrn.c index d65e1b03..d5c6f432 100644 --- a/etrn.c +++ b/etrn.c @@ -10,6 +10,7 @@ #include #include #include +#include #include "fetchmail.h" #include "smtp.h" #include "socket.h" diff --git a/fetchmail.c b/fetchmail.c index 60b0ed17..54dc45c6 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -64,6 +64,7 @@ int cmd_daemon; /* if --daemon was set */ char *idfile; /* UID list file */ flag versioninfo; /* emit only version info */ char *user; /* the name of the invoking user */ +char *home; char *fetchmailhost; /* the name of the host running fetchmail */ char *program_name; /* the name to prefix error messages with */ @@ -90,7 +91,6 @@ int main (int argc, char **argv) { int st, bkgd = FALSE; int parsestatus, implicitmode = FALSE; - struct passwd *pw; struct query *ctl; FILE *lockfp; netrc_entry *netrc_list; @@ -517,7 +517,7 @@ static int load_params(int argc, char **argv, int optind) { int implicitmode, st; struct passwd *pw; - struct query def_opts, *ctl, *mp; + struct query def_opts, *ctl; memset(&def_opts, '\0', sizeof(struct query)); def_opts.smtp_socket = -1; diff --git a/fetchmail.h b/fetchmail.h index 9b1695e7..376c5f83 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -181,7 +181,6 @@ extern struct query cmd_opts, *querylist; /* what's returned by envquery */ extern void envquery(int, char **); -char *user, *home, *fetchmailhost; /* controls the detail level of status/progress messages written to stderr */ extern int outlevel; /* see the O_.* constants above */ @@ -207,6 +206,7 @@ extern char *idfile; /* path name of UID file */ extern int linelimit; /* limit # lines retrieved per site */ extern flag versioninfo; /* emit only version info */ extern char *user; /* name of invoking user */ +extern char *home; /* home directory of invoking user */ extern char *fetchmailhost; /* the name of the host running fetchmail */ /* prototypes for globally callable functions */ diff --git a/interface.c b/interface.c index 3e20f7af..266cf6ba 100644 --- a/interface.c +++ b/interface.c @@ -23,7 +23,9 @@ #include #endif #include +#include #include +#include #include #include "config.h" #include "fetchmail.h" -- cgit v1.2.3