diff src/lib-index/mail-index.c @ 3824:3e756ea0474b HEAD

Comment updates, small cleanups and optimizations.
author Timo Sirainen <tss@iki.fi>
date Fri, 06 Jan 2006 19:30:26 +0200
parents 61f0e1fe9b55
children 1a4d3c25feb8
line wrap: on
line diff
--- a/src/lib-index/mail-index.c	Fri Jan 06 17:25:46 2006 +0200
+++ b/src/lib-index/mail-index.c	Fri Jan 06 19:30:26 2006 +0200
@@ -1455,7 +1455,7 @@
 		i_strdup("(in-memory index)") :
 		i_strconcat(index->dir, "/", index->prefix, NULL);
 
-	do {
+	for (;;) {
 		index->shared_lock_count = 0;
 		index->excl_lock_count = 0;
 		index->lock_type = F_UNLCK;
@@ -1497,7 +1497,7 @@
 			}
 		}
 		break;
-	} while (1);
+	}
 
 	if (ret <= 0)
 		mail_index_close(index);