From b1000cb703b852ea6c7493d9d8d24780e4a3b157 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 28 Oct 1996 03:49:39 +0000 Subject: Cleanup for PL3. svn path=/trunk/; revision=402 --- driver.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 38315ded..e549c5ed 100644 --- a/driver.c +++ b/driver.c @@ -440,17 +440,18 @@ int mboxfd; /* descriptor to which retrieved message will be written */ long len; /* length of message */ int delimited; /* does the protocol use a message delimiter? */ struct query *ctl; /* query control record */ -{ +{ char buf [MSGBUFSIZE+1]; - char *bufp, *headers, *unixfrom, *fromhdr, *tohdr, *cchdr, *bcchdr; + char *bufp, *headers, *fromhdr, *tohdr, *cchdr, *bcchdr; int n, oldlen; int inheaders,lines,sizeticker; /* read the message content from the server */ inheaders = 1; - headers = unixfrom = fromhdr = tohdr = cchdr = bcchdr = NULL; + headers = fromhdr = tohdr = cchdr = bcchdr = NULL; lines = 0; sizeticker = 0; + oldlen = 0; while (delimited || len > 0) { if ((n = SockGets(socket,buf,sizeof(buf))) < 0) @@ -517,9 +518,7 @@ struct query *ctl; /* query control record */ oldlen = newlen; } - if (!strncmp(bufp,"From ",5)) - unixfrom = bufp; - else if (!strncasecmp("From:", bufp, 5)) + if (!strncasecmp("From:", bufp, 5)) fromhdr = bufp; else if (!strncasecmp("To:", bufp, 3)) tohdr = bufp; @@ -539,8 +538,7 @@ struct query *ctl; /* query control record */ xmit_names = (struct idlist *)NULL; #ifdef HAVE_GETHOSTBYNAME /* is this a multidrop box? */ - if (ctl->localnames != (struct idlist *)NULL - && ctl->localnames->next != (struct idlist *)NULL) + if (MULTIDROP(ctl)) { /* compute the local address list */ find_server_names(tohdr, ctl, &xmit_names); -- cgit v1.2.3