dovecot-2.0-sslstream: Removed my_strptime().

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:57:42 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/28f35797059a
changeset: 10580:28f35797059a
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jan 25 01:02:27 2010 +0200
description:
Removed my_strptime().
It was just causing problems and wasn't used anywhere after all.

diffstat:

2 files changed, 13 deletions(-)
src/lib/compat.c |    7 -------
src/lib/compat.h |    6 ------

diffs (37 lines):

diff -r a2ed5c020cfa -r 28f35797059a src/lib/compat.c
--- a/src/lib/compat.c	Mon Jan 25 00:59:34 2010 +0200
+++ b/src/lib/compat.c	Mon Jan 25 01:02:27 2010 +0200
@@ -8,7 +8,6 @@
 #ifdef PREAD_WRAPPERS
 #  define _XOPEN_SOURCE 500 /* Linux */
 #endif
-#include <time.h> /* strptime() is giving trouble if this is moved below.. */
 
 #define IN_COMPAT_C
 #include "lib.h"
@@ -309,9 +308,3 @@ int i_my_clock_gettime(int clk_id, struc
 	return 0;
 }
 #endif
-
-#undef strptime
-char *my_strptime(const char *s, const char *format, struct tm *tm)
-{
-	return strptime(s, format, tm);
-}
diff -r a2ed5c020cfa -r 28f35797059a src/lib/compat.h
--- a/src/lib/compat.h	Mon Jan 25 00:59:34 2010 +0200
+++ b/src/lib/compat.h	Mon Jan 25 01:02:27 2010 +0200
@@ -206,12 +206,6 @@ int i_my_vsnprintf(char *str, size_t siz
 #  define clock_gettime i_my_clock_gettime
 int i_my_clock_gettime(int clk_id, struct timespec *tp);
 #endif
-
-/* glibc wants _XOPEN_SOURCE defined for strptime(), but doing that breaks
-   other things. So we'll create this wrapper to work around the problems. */
-#define strptime my_strptime
-struct tm;
-char *my_strptime(const char *s, const char *format, struct tm *tm);
 
 /* ctype.h isn't safe with signed chars,
    use our own instead if really needed */


More information about the dovecot-cvs mailing list