emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs/lib-src movemail.c


From: Chong Yidong
Subject: [Emacs-diffs] emacs/lib-src movemail.c
Date: Fri, 13 Feb 2009 14:21:31 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Chong Yidong <cyd>      09/02/13 14:21:31

Modified files:
        lib-src        : movemail.c 

Log message:
        Include time.h unconditionally.
        (main): Use time_t for time variables.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lib-src/movemail.c?cvsroot=emacs&r1=1.99&r2=1.100

Patches:
Index: movemail.c
===================================================================
RCS file: /sources/emacs/emacs/lib-src/movemail.c,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -b -r1.99 -r1.100
--- movemail.c  11 Feb 2009 03:59:52 -0000      1.99
+++ movemail.c  13 Feb 2009 14:21:30 -0000      1.100
@@ -60,6 +60,7 @@
 #include <sys/file.h>
 #include <stdio.h>
 #include <errno.h>
+#include <time.h>
 
 #include <getopt.h>
 #ifdef HAVE_UNISTD_H
@@ -375,7 +376,7 @@
       int lockcount = 0;
       int status = 0;
 #if defined (MAIL_USE_MAILLOCK) && defined (HAVE_TOUCHLOCK)
-      long touched_lock, now;
+      time_t touched_lock, now;
 #endif
 
       setuid (getuid ());
@@ -684,7 +685,6 @@
 #endif
 #include <pwd.h>
 #include <string.h>
-#include <time.h>
 
 #define NOTOK (-1)
 #define OK 0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]