-/* $OpenBSD: subr_hibernate.c,v 1.87 2014/04/19 16:19:07 mlarkin Exp $ */
+/* $OpenBSD: subr_hibernate.c,v 1.88 2014/04/20 14:02:57 mlarkin Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
* Prepare the final output chunk list. Calculate an output
* inflate strategy for overlapping chunks if needed.
*/
- img_index = pig_start;
for (i = 0; i < nochunks ; i++) {
/*
* If a conflict is detected, consume enough compressed
npchunks++;
copy_start +=
chunks[ochunks[j]].compressed_size;
- img_index += chunks[ochunks[j]].compressed_size;
i++;
j++;
}
HIBERNATE_CHUNK_USED;
nfchunks++;
}
- img_index += chunks[ochunks[i]].compressed_size;
}
}
- img_index = pig_start;
- for (i = 0; i < nfchunks; i++) {
- img_index += chunks[fchunks[i]].compressed_size;
- }
-
img_cur = pig_start;
for (i = 0; i < nfchunks; i++) {