comparison src/lib-index/mail-index-transaction-view.c @ 5855:fd6ff4d9cab1 HEAD

Removed view->hdr. Use view->map->hdr directly.
author Timo Sirainen <tss@iki.fi>
date Sun, 01 Jul 2007 22:11:41 +0300
parents 3bccf203fa91
children 5d3a941444f1
comparison
equal deleted inserted replaced
5854:eca7e29dce0d 5855:fd6ff4d9cab1
29 static uint32_t _tview_get_message_count(struct mail_index_view *view) 29 static uint32_t _tview_get_message_count(struct mail_index_view *view)
30 { 30 {
31 struct mail_index_view_transaction *tview = 31 struct mail_index_view_transaction *tview =
32 (struct mail_index_view_transaction *)view; 32 (struct mail_index_view_transaction *)view;
33 33
34 return view->hdr.messages_count + 34 return view->map->hdr.messages_count +
35 (tview->t->last_new_seq == 0 ? 0 : 35 (tview->t->last_new_seq == 0 ? 0 :
36 tview->t->last_new_seq - tview->t->first_new_seq); 36 tview->t->last_new_seq - tview->t->first_new_seq);
37 } 37 }
38 38
39 static const struct mail_index_header * 39 static const struct mail_index_header *