Call lseek directly rather than via data_align()

This commit is contained in:
Glenn L McGrath 2002-11-03 14:14:53 +00:00
parent 237ae42fc9
commit f92caa7619

View File

@ -85,7 +85,7 @@ extern int rpm2cpio_main(int argc, char **argv)
/* Skip the signature header */
skip_header(rpm_fd);
data_align(rpm_fd, lseek(rpm_fd, 0, SEEK_CUR), 8);
lseek(rpm_fd, (8 - (lseek(rpm_fd, 0, SEEK_CUR) % 8)) % 8, SEEK_CUR);
/* Skip the main header */
skip_header(rpm_fd);