dovecot-2.0: Removed ioloop_timezone. It's not working nowadays.

dovecot at dovecot.org dovecot at dovecot.org
Wed May 27 04:57:07 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/b59c6c30115e
changeset: 9400:b59c6c30115e
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 26 21:53:54 2009 -0400
description:
Removed ioloop_timezone. It's not working nowadays.

diffstat:

5 files changed, 5 insertions(+), 7 deletions(-)
src/lib/ioloop-notify-dn.c      |    2 +-
src/lib/ioloop-notify-inotify.c |    2 +-
src/lib/ioloop-notify-kqueue.c  |    2 +-
src/lib/ioloop.c                |    5 ++---
src/lib/ioloop.h                |    1 -

diffs (76 lines):

diff -r 91984e758846 -r b59c6c30115e src/lib/ioloop-notify-dn.c
--- a/src/lib/ioloop-notify-dn.c	Tue May 26 21:53:22 2009 -0400
+++ b/src/lib/ioloop-notify-dn.c	Tue May 26 21:53:54 2009 -0400
@@ -80,7 +80,7 @@ static void dnotify_input(struct ioloop 
 		i_fatal("read(dnotify pipe) returned %d", ret);
 	ret /= sizeof(fd_buf[0]);
 
-	if (gettimeofday(&ioloop_timeval, &ioloop_timezone) < 0)
+	if (gettimeofday(&ioloop_timeval, NULL) < 0)
 		i_fatal("gettimeofday(): %m");
 	ioloop_time = ioloop_timeval.tv_sec;
 
diff -r 91984e758846 -r b59c6c30115e src/lib/ioloop-notify-inotify.c
--- a/src/lib/ioloop-notify-inotify.c	Tue May 26 21:53:22 2009 -0400
+++ b/src/lib/ioloop-notify-inotify.c	Tue May 26 21:53:54 2009 -0400
@@ -51,7 +51,7 @@ static bool inotify_input_more(struct io
 		i_fatal("read(inotify) failed: %m");
 	}
 
-	if (gettimeofday(&ioloop_timeval, &ioloop_timezone) < 0)
+	if (gettimeofday(&ioloop_timeval, NULL) < 0)
 		i_fatal("gettimeofday(): %m");
 	ioloop_time = ioloop_timeval.tv_sec;
 
diff -r 91984e758846 -r b59c6c30115e src/lib/ioloop-notify-kqueue.c
--- a/src/lib/ioloop-notify-kqueue.c	Tue May 26 21:53:22 2009 -0400
+++ b/src/lib/ioloop-notify-kqueue.c	Tue May 26 21:53:54 2009 -0400
@@ -57,7 +57,7 @@ static void event_callback(struct ioloop
 		i_fatal("kevent(notify) failed: %m");
 	}
 
-	if (gettimeofday(&ioloop_timeval, &ioloop_timezone) < 0)
+	if (gettimeofday(&ioloop_timeval, NULL) < 0)
 		i_fatal("gettimeofday() failed: %m");
 	ioloop_time = ioloop_timeval.tv_sec;
 
diff -r 91984e758846 -r b59c6c30115e src/lib/ioloop.c
--- a/src/lib/ioloop.c	Tue May 26 21:53:22 2009 -0400
+++ b/src/lib/ioloop.c	Tue May 26 21:53:54 2009 -0400
@@ -15,7 +15,6 @@
 
 time_t ioloop_time = 0;
 struct timeval ioloop_timeval;
-struct timezone ioloop_timezone;
 
 struct ioloop *current_ioloop = NULL;
 
@@ -260,7 +259,7 @@ static void io_loop_handle_timeouts_real
 	struct timeval tv, tv_call;
         unsigned int t_id;
 
-	if (gettimeofday(&ioloop_timeval, &ioloop_timezone) < 0)
+	if (gettimeofday(&ioloop_timeval, NULL) < 0)
 		i_fatal("gettimeofday(): %m");
 
 	/* Don't bother comparing usecs. */
@@ -363,7 +362,7 @@ struct ioloop *io_loop_create(void)
 	struct ioloop *ioloop;
 
 	/* initialize time */
-	if (gettimeofday(&ioloop_timeval, &ioloop_timezone) < 0)
+	if (gettimeofday(&ioloop_timeval, NULL) < 0)
 		i_fatal("gettimeofday(): %m");
 	ioloop_time = ioloop_timeval.tv_sec;
 
diff -r 91984e758846 -r b59c6c30115e src/lib/ioloop.h
--- a/src/lib/ioloop.h	Tue May 26 21:53:22 2009 -0400
+++ b/src/lib/ioloop.h	Tue May 26 21:53:54 2009 -0400
@@ -36,7 +36,6 @@ typedef void timeout_callback_t(void *co
    Can be used instead of time(NULL). */
 extern time_t ioloop_time;
 extern struct timeval ioloop_timeval;
-extern struct timezone ioloop_timezone;
 
 extern struct ioloop *current_ioloop;
 


More information about the dovecot-cvs mailing list