]> diplodocus.org Git - nmh/commitdiff
Removed some #includes of unistd.h and stdio.h because they're
authorDavid Levine <levinedl@acm.org>
Mon, 29 Apr 2013 00:32:44 +0000 (19:32 -0500)
committerDavid Levine <levinedl@acm.org>
Mon, 29 Apr 2013 00:32:44 +0000 (19:32 -0500)
in h/nmh.h.

sbr/getpass.c
sbr/lock_file.c
sbr/message_id.c

index f3ae829..95e9178 100644 (file)
  * SUCH DAMAGE.
  */
 
-#include <stdio.h>
+#include <h/mh.h>
 #include <termios.h>
-#include <unistd.h>   /* for isatty() */
-#include "h/mh.h"     /* for adios() */
 
 /* We don't use MAX_PASS here because the maximum password length on a remote
    POP daemon will have nothing to do with the length on our OS.  256 is
index 80b93a9..0e83ac8 100644 (file)
 #ifdef HAVE_FLOCK
 # include <sys/file.h>
 #endif
-#ifdef HAVE_LOCKF
-# include <unistd.h>
-#endif
 
 #if defined(HAVE_LIBLOCKFILE)
-#include <lockfile.h>
+# include <lockfile.h>
 #endif
 
 #ifdef LOCKDIR
index ce65ed9..c20bc1c 100644 (file)
@@ -8,9 +8,7 @@
  */
 
 #include <h/mh.h>
-#include <unistd.h>    /* for getpid() */
 #include <sys/time.h>  /* for gettimeofday() */
-#include <stdio.h>
 
 
 static enum {