[evolution-data-server] A little bit more of cleaning



commit d32962cededbc9f8c14e9922033f76c55e910595
Author: Fridrich Å trba <fridrich strba bluewin ch>
Date:   Fri Apr 16 01:10:54 2010 +0200

    A little bit more of cleaning

 .../backends/groupwise/e-cal-backend-groupwise.c   |    5 ++---
 camel/camel-mime-utils.c                           |   10 ----------
 2 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/calendar/backends/groupwise/e-cal-backend-groupwise.c b/calendar/backends/groupwise/e-cal-backend-groupwise.c
index 32977e3..f437017 100644
--- a/calendar/backends/groupwise/e-cal-backend-groupwise.c
+++ b/calendar/backends/groupwise/e-cal-backend-groupwise.c
@@ -49,10 +49,9 @@
 #endif
 
 #ifdef G_OS_WIN32
-/* Undef the similar macro from pthread.h, it doesn't check if
- * gmtime() returns NULL.
- */
+#ifdef gmtime_r
 #undef gmtime_r
+#endif
 
 /* The gmtime() in Microsoft's C library is MT-safe */
 #define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0)
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 8974e51..79a6d22 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -63,16 +63,6 @@
 #define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0)
 #endif
 
-#if 0
-gint strdup_count = 0;
-gint malloc_count = 0;
-gint free_count = 0;
-
-#define g_strdup(x) (strdup_count++, g_strdup(x))
-#define g_malloc(x) (malloc_count++, g_malloc(x))
-#define g_free(x) (free_count++, g_free(x))
-#endif
-
 /* for all non-essential warnings ... */
 #define w(x)
 



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