]> Pileus Git - ~andy/fetchmail/commitdiff
Eliminate some unnecessary headers.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 25 Sep 1996 01:55:39 +0000 (01:55 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 25 Sep 1996 01:55:39 +0000 (01:55 -0000)
svn path=/trunk/; revision=129

driver.c
imap.c
pop2.c
pop3.c

index a37ab8072ddbf9b9aeb5645c98cef080e98f19d3..53b41e5acd49e371828984a93de075ceed7175ed 100644 (file)
--- a/driver.c
+++ b/driver.c
  ***********************************************************************/
 
 #include  <config.h>
-#include  <varargs.h>
-
 #include  <stdio.h>
-#if defined(STDC_HEADERS)
-#include  <string.h>
-#endif
-#if defined(HAVE_UNISTD_H)
-#include  <unistd.h>
-#endif
-
-#include  <sys/time.h>
-#include  <ctype.h>
-#include  <errno.h>
 #include  <malloc.h>
+#include  <varargs.h>
+#include  <sys/time.h>
 
 #include  "socket.h"
 #include  "fetchmail.h"
diff --git a/imap.c b/imap.c
index 87dfe19989d19a95c8d290bce75babb67d0ed503..5cc5e0542c61d7c3d3b230a13c7d2e1b10f2ae4a 100644 (file)
--- a/imap.c
+++ b/imap.c
  ***********************************************************************/
 
 #include  <config.h>
-#include  <varargs.h>
-
 #include  <stdio.h>
-#if defined(STDC_HEADERS)
-#include  <string.h>
-#endif
-#if defined(HAVE_UNISTD_H)
-#include  <unistd.h>
-#endif
-#include  <errno.h>
-
 #include  "socket.h"
 #include  "fetchmail.h"
 
-static int count, first;
-
 /*********************************************************************
 
  Method declarations for IMAP 
 
  *********************************************************************/
 
+static int count, first;
 static int exists, unseen, recent;
 
 int imap_ok (argbuf,socket)
@@ -176,7 +165,7 @@ int number;
 static struct method imap =
 {
     "IMAP",                            /* Internet Message Access Protocol */
-    143,                               /* standard IMAP3bis/IMAP4 port */
+    143,                               /* standard IMAP2bis/IMAP4 port */
     1,                                 /* this is a tagged protocol */
     0,                                 /* no message delimiter */
     imap_ok,                           /* parse command response */
@@ -196,3 +185,4 @@ struct hostrec *queryctl;
     return(do_protocol(queryctl, &imap));
 }
 
+
diff --git a/pop2.c b/pop2.c
index 16fbb73d5dd649c3161ff226b22ab39a8f3f46ad..322a7c4d688c41757a975041f7adc5112a09dba7 100644 (file)
--- a/pop2.c
+++ b/pop2.c
@@ -1,4 +1,4 @@
-/* Copyright 1993-95 by Carl Harris, Jr. Copyright 1996 by Eric S. Raymond
+/* Copyright 1996 by Eric S. Raymond
  * All rights reserved.
  * For license terms, see the file COPYING in this directory.
  */
@@ -6,31 +6,16 @@
 /***********************************************************************
   module:       pop2.c
   project:      fetchmail
-  programmer:   Carl Harris, ceharris@mal.com
-               Hacks and bug fixes by esr.
-  description:  POP2 client code.
+  programmer:   Eric S. Raymond
+  description:  POP2 method code.
 
  ***********************************************************************/
 
 #include  <config.h>
-
 #include  <stdio.h>
-#if defined(STDC_HEADERS)
-#include  <string.h>
-#endif
-#if defined(HAVE_UNISTD_H)
-#include  <unistd.h>
-#endif
-
-#include  <sys/time.h>
-#include  <errno.h>
-
 #include  "socket.h"
 #include  "fetchmail.h"
 
-#if HAVE_PROTOTYPES
-#endif
-
 /*********************************************************************
 
  Method declarations for POP2
diff --git a/pop3.c b/pop3.c
index af62b958b7afcbcff5ac4612f21515f53d0a9321..6ff42df2eb092e182441abaf48739a33dc200cc4 100644 (file)
--- a/pop3.c
+++ b/pop3.c
  ***********************************************************************/
 
 #include  <config.h>
-
 #include  <stdio.h>
-#if defined(STDC_HEADERS)
-#include  <string.h>
-#endif
-#if defined(HAVE_UNISTD_H)
-#include  <unistd.h>
-#endif
-#include  <errno.h>
-
 #include  "socket.h"
 #include  "fetchmail.h"