aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/nntp/camel-nntp-folder.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-07-10 03:21:59 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-07-10 03:21:59 +0800
commit96d7f1821883b2355e3b9d8fd640595ac699c100 (patch)
tree9a185b551cce76e12a51a320a8ecfdf3e0318090 /camel/providers/nntp/camel-nntp-folder.c
parent2bd47d3cda52acc0beb688ffb4a8202412de5c09 (diff)
downloadgsoc2013-evolution-96d7f1821883b2355e3b9d8fd640595ac699c100.tar
gsoc2013-evolution-96d7f1821883b2355e3b9d8fd640595ac699c100.tar.gz
gsoc2013-evolution-96d7f1821883b2355e3b9d8fd640595ac699c100.tar.bz2
gsoc2013-evolution-96d7f1821883b2355e3b9d8fd640595ac699c100.tar.lz
gsoc2013-evolution-96d7f1821883b2355e3b9d8fd640595ac699c100.tar.xz
gsoc2013-evolution-96d7f1821883b2355e3b9d8fd640595ac699c100.tar.zst
gsoc2013-evolution-96d7f1821883b2355e3b9d8fd640595ac699c100.zip
Get rid of the #ifdef ENABLE_THREADS since we no longer plan to
2003-07-09 Jeffrey Stedfast <fejj@ximian.com> Get rid of the #ifdef ENABLE_THREADS since we no longer plan to support/maintain this. * providers/nntp/camel-nntp-store.c: Here. * providers/nntp/camel-nntp-newsrc.c: And here. * providers/nntp/camel-nntp-folder.c: Same. * providers/local/camel-local-folder.c: And here. svn path=/trunk/; revision=21778
Diffstat (limited to 'camel/providers/nntp/camel-nntp-folder.c')
-rw-r--r--camel/providers/nntp/camel-nntp-folder.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/camel/providers/nntp/camel-nntp-folder.c b/camel/providers/nntp/camel-nntp-folder.c
index 6603895596..9f0832bc33 100644
--- a/camel/providers/nntp/camel-nntp-folder.c
+++ b/camel/providers/nntp/camel-nntp-folder.c
@@ -4,7 +4,7 @@
* Authors : Chris Toshok <toshok@ximian.com>
* Michael Zucchi <notzed@ximian.com>
*
- * Copyright (C) 2001 Ximian .
+ * Copyright (C) 2001-2003 Ximian, Inc. (www.ximian.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
@@ -22,16 +22,18 @@
*/
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdlib.h>
+#include <string.h>
#include <sys/types.h>
-#include <dirent.h>
#include <sys/stat.h>
+#include <dirent.h>
#include <unistd.h>
-#include <errno.h>
-#include <string.h>
#include <fcntl.h>
+#include <errno.h>
#include "camel/camel-file-utils.h"
#include "camel/camel-stream-mem.h"
@@ -48,7 +50,7 @@
#include "camel-nntp-store.h"
#include "camel-nntp-private.h"
-static CamelFolderClass *parent_class=NULL;
+static CamelFolderClass *parent_class = NULL;
/* Returns the class for a CamelNNTPFolder */
#define CNNTPF_CLASS(so) CAMEL_NNTP_FOLDER_CLASS (CAMEL_OBJECT_GET_CLASS(so))
@@ -262,11 +264,9 @@ nntp_folder_init(CamelNNTPFolder *nntp_folder, CamelNNTPFolderClass *klass)
struct _CamelNNTPFolderPrivate *p;
nntp_folder->changes = camel_folder_change_info_new();
-#ifdef ENABLE_THREADS
p = nntp_folder->priv = g_malloc0(sizeof(*nntp_folder->priv));
p->search_lock = g_mutex_new();
p->cache_lock = g_mutex_new();
-#endif
}
static void
@@ -275,12 +275,11 @@ nntp_folder_finalise (CamelNNTPFolder *nntp_folder)
struct _CamelNNTPFolderPrivate *p;
g_free(nntp_folder->storage_path);
-#ifdef ENABLE_THREADS
+
p = nntp_folder->priv;
g_mutex_free(p->search_lock);
g_mutex_free(p->cache_lock);
g_free(p);
-#endif
}
static void