changeset 20324:97fa8fcdffd4

lib-index: Fixed test-mail-index-sync-ext
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Tue, 14 Jun 2016 10:49:24 +0300
parents 07f21d0fb517
children 6a0fa21a3228
files src/lib-index/test-mail-index-sync-ext.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/test-mail-index-sync-ext.c	Tue Jun 14 01:14:13 2016 +0300
+++ b/src/lib-index/test-mail-index-sync-ext.c	Tue Jun 14 10:49:24 2016 +0300
@@ -63,7 +63,7 @@
 	u.uid = 1;
 #define TEST_ATOMIC(_type, _value, _diff, _ret) \
 	{ _type *n = ptr; *n = _value; } \
-	ext->record_size = sizeof(_type); \
+	ctx.cur_ext_record_size = sizeof(_type); \
 	u.diff = _diff; \
 	test_assert(mail_index_sync_ext_atomic_inc(&ctx, &u) == _ret);
 
@@ -81,7 +81,7 @@
 	TEST_ATOMIC_BLOCK(uint8_t, 255);
 	TEST_ATOMIC_BLOCK(uint16_t, 65535);
 
-	ext->record_size = 5;
+	ctx.cur_ext_record_size = 5;
 	u.diff = 0;
 	test_assert(mail_index_sync_ext_atomic_inc(&ctx, &u) == -1);