diff options
Diffstat (limited to 'xdelta3')
-rwxr-xr-x | xdelta3/examples/small_page_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xdelta3/examples/small_page_test.c b/xdelta3/examples/small_page_test.c index 16dd1c1..2d9fb1c 100755 --- a/xdelta3/examples/small_page_test.c +++ b/xdelta3/examples/small_page_test.c | |||
@@ -68,6 +68,7 @@ process_page (int is_encode, | |||
68 | config->srcwin_maxsz = PAGE_SIZE; | 68 | config->srcwin_maxsz = PAGE_SIZE; |
69 | config->iopt_size = IOPT_SIZE; | 69 | config->iopt_size = IOPT_SIZE; |
70 | config->alloc = &process_alloc; | 70 | config->alloc = &process_alloc; |
71 | config->opaque = (void*) ctx; | ||
71 | 72 | ||
72 | src->size = PAGE_SIZE; | 73 | src->size = PAGE_SIZE; |
73 | src->blksize = PAGE_SIZE; | 74 | src->blksize = PAGE_SIZE; |
@@ -154,6 +155,7 @@ int main() | |||
154 | for (level = 1; level < 10; level = (level == 1 ? 3 : level + 3)) | 155 | for (level = 1; level < 10; level = (level == 1 ? 3 : level + 3)) |
155 | { | 156 | { |
156 | int lflag = level << XD3_COMPLEVEL_SHIFT; | 157 | int lflag = level << XD3_COMPLEVEL_SHIFT; |
158 | |||
157 | for (stride = 0; stride <= PAGE_SIZE; stride += PAGE_SIZE / 64) | 159 | for (stride = 0; stride <= PAGE_SIZE; stride += PAGE_SIZE / 64) |
158 | { | 160 | { |
159 | if ((ret = test(stride, lflag)) || | 161 | if ((ret = test(stride, lflag)) || |