diff src/plugins/trash/trash-plugin.c @ 4796:49c9e7588de4 HEAD

s/quota/quota_set/ so we don't conflict with the quota symbol already present in Mac OS X.
author Timo Sirainen <tss@iki.fi>
date Sun, 12 Nov 2006 20:48:32 +0200
parents 5fb199ed254a
children 967de900c73a
line wrap: on
line diff
--- a/src/plugins/trash/trash-plugin.c	Sun Nov 12 20:02:15 2006 +0200
+++ b/src/plugins/trash/trash-plugin.c	Sun Nov 12 20:48:32 2006 +0200
@@ -103,7 +103,7 @@
 			   we get proper namespace support for lib-storage. */
 			struct mail_storage *const *storage;
 
-			storage = array_idx(&quota->storages, 0);
+			storage = array_idx(&quota_set->storages, 0);
 			trashes[i].storage = *storage;
 		}
 		/* expunge oldest mails first in all trash boxes with
@@ -246,7 +246,7 @@
 	if (env == NULL)
 		return;
 
-	if (quota == NULL) {
+	if (quota_set == NULL) {
 		i_error("trash plugin: quota plugin not initialized");
 		return;
 	}
@@ -255,13 +255,13 @@
 	if (read_configuration(env) < 0)
 		return;
 
-	trash_next_quota_test_alloc = quota->test_alloc;
-	quota->test_alloc = trash_quota_test_alloc;
+	trash_next_quota_test_alloc = quota_set->test_alloc;
+	quota_set->test_alloc = trash_quota_test_alloc;
 }
 
 void trash_plugin_deinit(void)
 {
-	quota->test_alloc = trash_next_quota_test_alloc;
+	quota_set->test_alloc = trash_next_quota_test_alloc;
 
 	if (config_pool != NULL)
 		pool_unref(config_pool);