From a0c1a491f146e480589496c0714a9be6857d2c26 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 6 Mar 2003 14:39:30 +0000 Subject: Fixes for bug #39168 2003-03-06 Jeffrey Stedfast Fixes for bug #39168 * providers/local/camel-spool-summary.c: Get rid of the empty private struct. * providers/local/camel-mbox-summary.c: Get rid of the empty private struct. * camel-vee-store.c: Get rid of the empty private struct. * camel-mime-filter-from.c: Get rid of the empty private struct. 2003-03-05 Jeffrey Stedfast * providers/sendmail/camel-sendmail-transport.c (sendmail_send_to): Add a CRLF filter to the output stream to convert any CRLF sequences into plain old line-feeds to work around a bug in some local transport programs. svn path=/trunk/; revision=20187 --- camel/providers/local/camel-mbox-summary.c | 10 +--------- camel/providers/local/camel-mbox-summary.h | 2 -- camel/providers/local/camel-spool-summary.c | 10 +--------- camel/providers/local/camel-spool-summary.h | 3 +-- 4 files changed, 3 insertions(+), 22 deletions(-) (limited to 'camel/providers/local') diff --git a/camel/providers/local/camel-mbox-summary.c b/camel/providers/local/camel-mbox-summary.c index 41ebe28fa6..42d26e8a5b 100644 --- a/camel/providers/local/camel-mbox-summary.c +++ b/camel/providers/local/camel-mbox-summary.c @@ -46,11 +46,6 @@ #define CAMEL_MBOX_SUMMARY_VERSION (0x1000) -struct _CamelMboxSummaryPrivate { -}; - -#define _PRIVATE(o) (((CamelMboxSummary *)(o))->priv) - static int summary_header_load (CamelFolderSummary *, FILE *); static int summary_header_save (CamelFolderSummary *, FILE *); @@ -132,11 +127,8 @@ camel_mbox_summary_class_init(CamelMboxSummaryClass *klass) static void camel_mbox_summary_init(CamelMboxSummary *obj) { - struct _CamelMboxSummaryPrivate *p; struct _CamelFolderSummary *s = (CamelFolderSummary *)obj; - - p = _PRIVATE(obj) = g_malloc0(sizeof(*p)); - + /* subclasses need to set the right instance data sizes */ s->message_info_size = sizeof(CamelMboxMessageInfo); s->content_info_size = sizeof(CamelMboxMessageContentInfo); diff --git a/camel/providers/local/camel-mbox-summary.h b/camel/providers/local/camel-mbox-summary.h index 13c5f1c027..0588a9a81b 100644 --- a/camel/providers/local/camel-mbox-summary.h +++ b/camel/providers/local/camel-mbox-summary.h @@ -46,8 +46,6 @@ typedef struct _CamelMboxMessageInfo { struct _CamelMboxSummary { CamelLocalSummary parent; - struct _CamelMboxSummaryPrivate *priv; - CamelFolderChangeInfo *changes; /* used to build change sets */ size_t folder_size; /* size of the mbox file, last sync */ diff --git a/camel/providers/local/camel-spool-summary.c b/camel/providers/local/camel-spool-summary.c index d914af87e2..7991a881cc 100644 --- a/camel/providers/local/camel-spool-summary.c +++ b/camel/providers/local/camel-spool-summary.c @@ -44,11 +44,6 @@ #define CAMEL_SPOOL_SUMMARY_VERSION (0x400) -struct _CamelSpoolSummaryPrivate { -}; - -#define _PRIVATE(o) (((CamelSpoolSummary *)(o))->priv) - static int spool_summary_load(CamelLocalSummary *cls, int forceindex, CamelException *ex); static int spool_summary_check(CamelLocalSummary *cls, CamelFolderChangeInfo *changeinfo, CamelException *ex); @@ -95,11 +90,8 @@ camel_spool_summary_class_init(CamelSpoolSummaryClass *klass) static void camel_spool_summary_init(CamelSpoolSummary *obj) { - struct _CamelSpoolSummaryPrivate *p; struct _CamelFolderSummary *s = (CamelFolderSummary *)obj; - - p = _PRIVATE(obj) = g_malloc0(sizeof(*p)); - + /* message info size is from mbox parent */ /* and a unique file version */ diff --git a/camel/providers/local/camel-spool-summary.h b/camel/providers/local/camel-spool-summary.h index ac846220f4..eda6e64fab 100644 --- a/camel/providers/local/camel-spool-summary.h +++ b/camel/providers/local/camel-spool-summary.h @@ -36,8 +36,7 @@ typedef struct _CamelSpoolSummaryClass CamelSpoolSummaryClass; struct _CamelSpoolSummary { CamelMboxSummary parent; - - struct _CamelSpoolSummaryPrivate *priv; + }; struct _CamelSpoolSummaryClass { -- cgit