]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
cleanup
authorTimo Sirainen <tss@iki.fi>
Wed, 28 Apr 2004 02:42:34 +0000 (05:42 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 28 Apr 2004 02:42:34 +0000 (05:42 +0300)
--HG--
branch : HEAD

src/lib-index/mail-index-view-private.h
src/lib-index/mail-index-view.c

index 7fd89791b7b3162ab25fc2208e52683b6e5e5968..8cd675ad8eab01a11d9a0f02f917f68d718b2bf8 100644 (file)
@@ -21,7 +21,7 @@ struct mail_index_view {
        unsigned int external:1;
 };
 
-int mail_index_view_lock(struct mail_index_view *view, int update_index);
+int mail_index_view_lock(struct mail_index_view *view);
 int mail_index_view_lock_head(struct mail_index_view *view, int update_index);
 void mail_index_view_add_synced_transaction(struct mail_index_view *view,
                                            uint32_t log_file_seq,
index ad0d2709d762d960c4cc28c7f77b54def8668409..59ff2fff7262be56773dbc5d071b12b99b65b6cd 100644 (file)
@@ -57,7 +57,7 @@ int mail_index_view_lock_head(struct mail_index_view *view, int update_index)
        return 0;
 }
 
-int mail_index_view_lock(struct mail_index_view *view, int update_index)
+int mail_index_view_lock(struct mail_index_view *view)
 {
        if (view->inconsistent)
                return -1;
@@ -67,7 +67,7 @@ int mail_index_view_lock(struct mail_index_view *view, int update_index)
                return 0;
        }
 
-       return mail_index_view_lock_head(view, update_index);
+       return mail_index_view_lock_head(view, FALSE);
 }
 
 void mail_index_view_unlock(struct mail_index_view *view)
@@ -108,7 +108,7 @@ void mail_index_view_transaction_unref(struct mail_index_view *view)
 int mail_index_get_header(struct mail_index_view *view,
                          const struct mail_index_header **hdr_r)
 {
-       if (mail_index_view_lock(view, FALSE) < 0)
+       if (mail_index_view_lock(view) < 0)
                return -1;
 
        *hdr_r = view->map->hdr;
@@ -125,7 +125,7 @@ int mail_index_lookup(struct mail_index_view *view, uint32_t seq,
        i_assert(seq > 0);
        i_assert(seq <= view->map->records_count);
 
-       if (mail_index_view_lock(view, FALSE) < 0)
+       if (mail_index_view_lock(view) < 0)
                return -1;
 
        rec = &view->map->records[seq-1];
@@ -160,7 +160,7 @@ int mail_index_lookup_uid(struct mail_index_view *view, uint32_t seq,
        i_assert(seq > 0);
        i_assert(seq <= view->map->records_count);
 
-       if (mail_index_view_lock(view, FALSE) < 0)
+       if (mail_index_view_lock(view) < 0)
                return -1;
 
        *uid_r = view->map->records[seq-1].uid;
@@ -215,7 +215,7 @@ int mail_index_lookup_uid_range(struct mail_index_view *view,
        i_assert(first_uid > 0);
        i_assert(first_uid <= last_uid);
 
-       if (mail_index_view_lock(view, FALSE) < 0)
+       if (mail_index_view_lock(view) < 0)
                return -1;
 
        left_idx = 0;
@@ -250,7 +250,7 @@ int mail_index_lookup_first(struct mail_index_view *view, enum mail_flags flags,
 
        *seq_r = 0;
 
-       if (mail_index_view_lock(view, FALSE) < 0)
+       if (mail_index_view_lock(view) < 0)
                return -1;
 
        if ((flags_mask & MAIL_RECENT) != 0 && (flags & MAIL_RECENT) != 0)