1 /* vi: set sw=4 ts=4: */
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
11 void data_align(archive_handle_t *archive_handle, const unsigned short boundary)
13 const unsigned short skip_amount = (boundary - (archive_handle->offset % boundary)) % boundary;
15 archive_handle->seek(archive_handle, skip_amount);
16 archive_handle->offset += skip_amount;