aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-11-03 14:14:53 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-11-03 14:14:53 +0000
commitf92caa7619d3f2dd7159a8bfb846e0f6dd4bab25 (patch)
tree50591ad4dac01b968a3ad68bb806d0efe3b18b48
parent237ae42fc96ede945d28d9054f045b73e419d089 (diff)
downloadbusybox-w32-f92caa7619d3f2dd7159a8bfb846e0f6dd4bab25.tar.gz
busybox-w32-f92caa7619d3f2dd7159a8bfb846e0f6dd4bab25.tar.bz2
busybox-w32-f92caa7619d3f2dd7159a8bfb846e0f6dd4bab25.zip
Call lseek directly rather than via data_align()
-rw-r--r--archival/rpm2cpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c
index ecd9e7801..66f680869 100644
--- a/archival/rpm2cpio.c
+++ b/archival/rpm2cpio.c
@@ -85,7 +85,7 @@ extern int rpm2cpio_main(int argc, char **argv)
85 85
86 /* Skip the signature header */ 86 /* Skip the signature header */
87 skip_header(rpm_fd); 87 skip_header(rpm_fd);
88 data_align(rpm_fd, lseek(rpm_fd, 0, SEEK_CUR), 8); 88 lseek(rpm_fd, (8 - (lseek(rpm_fd, 0, SEEK_CUR) % 8)) % 8, SEEK_CUR);
89 89
90 /* Skip the main header */ 90 /* Skip the main header */
91 skip_header(rpm_fd); 91 skip_header(rpm_fd);