changeset 3316:62d31be5ae60 HEAD

s/PREFIX/SUFFIX/ for .cache and .log filename suffixes..
author Timo Sirainen <tss@iki.fi>
date Sat, 23 Apr 2005 11:45:24 +0300
parents ced373b587a9
children a19268b76093
files src/lib-index/mail-cache.c src/lib-index/mail-cache.h src/lib-index/mail-transaction-log.c
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-cache.c	Fri Apr 22 23:58:18 2005 +0300
+++ b/src/lib-index/mail-cache.c	Sat Apr 23 11:45:24 2005 +0300
@@ -256,7 +256,7 @@
 	cache->index = index;
 	cache->fd = -1;
 	cache->filepath =
-		i_strconcat(index->filepath, MAIL_CACHE_FILE_PREFIX, NULL);
+		i_strconcat(index->filepath, MAIL_CACHE_FILE_SUFFIX, NULL);
 	cache->field_pool = pool_alloconly_create("Cache fields", 1024);
 	cache->field_name_hash =
 		hash_create(default_pool, cache->field_pool, 0,
--- a/src/lib-index/mail-cache.h	Fri Apr 22 23:58:18 2005 +0300
+++ b/src/lib-index/mail-cache.h	Sat Apr 23 11:45:24 2005 +0300
@@ -3,7 +3,7 @@
 
 #include "mail-index.h"
 
-#define MAIL_CACHE_FILE_PREFIX ".cache"
+#define MAIL_CACHE_FILE_SUFFIX ".cache"
 
 struct mail_cache;
 struct mail_cache_view;
--- a/src/lib-index/mail-transaction-log.c	Fri Apr 22 23:58:18 2005 +0300
+++ b/src/lib-index/mail-transaction-log.c	Sat Apr 23 11:45:24 2005 +0300
@@ -23,7 +23,7 @@
 #define LOG_DOTLOCK_STALE_TIMEOUT 0
 #define LOG_DOTLOCK_IMMEDIATE_STALE_TIMEOUT 300
 
-#define MAIL_TRANSACTION_LOG_PREFIX ".log"
+#define MAIL_TRANSACTION_LOG_SUFFIX ".log"
 #define LOG_NEW_DOTLOCK_SUFFIX ".newlock"
 
 static struct mail_transaction_log_file *
@@ -234,7 +234,7 @@
 	log->new_dotlock_settings.lock_suffix = LOG_NEW_DOTLOCK_SUFFIX;
 
 	path = t_strconcat(log->index->filepath,
-			   MAIL_TRANSACTION_LOG_PREFIX, NULL);
+			   MAIL_TRANSACTION_LOG_SUFFIX, NULL);
 	log->head = mail_transaction_log_file_open_or_create(log, path);
 	if (log->head == NULL) {
 		mail_transaction_log_close(log);
@@ -709,7 +709,7 @@
 		return 0;
 
 	path = t_strconcat(log->index->filepath,
-			   MAIL_TRANSACTION_LOG_PREFIX, NULL);
+			   MAIL_TRANSACTION_LOG_SUFFIX, NULL);
 	if (stat(path, &st) < 0) {
 		mail_index_file_set_syscall_error(log->index, path, "stat()");
 		return -1;