mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 20:46:41 +02:00
43 lines
1.4 KiB
Diff
43 lines
1.4 KiB
Diff
diff --git a/dasdview/dasdview.c b/dasdview/dasdview.c
|
|
index 92a30ea..8c999af 100644
|
|
--- a/dasdview/dasdview.c
|
|
+++ b/dasdview/dasdview.c
|
|
@@ -1865,7 +1865,7 @@ static void dasdview_view_standard(dasdview_info_t *info)
|
|
|
|
/* seek in SEEK_STEP steps */
|
|
for (i = 1; i <= j; i++) {
|
|
- rc = lseek64(fd, SEEK_STEP, SEEK_CUR);
|
|
+ rc = lseek(fd, SEEK_STEP, SEEK_CUR);
|
|
if (rc == -1) {
|
|
printf("*** rc: %d (%d) ***\n", rc, errno);
|
|
printf("*** j: %llu ***\n", j);
|
|
diff --git a/zipl/src/zipl-editenv.c b/zipl/src/zipl-editenv.c
|
|
index a55e9df..2d62824 100644
|
|
--- a/zipl/src/zipl-editenv.c
|
|
+++ b/zipl/src/zipl-editenv.c
|
|
@@ -128,7 +128,7 @@ static int envblk_update(struct zipl_envblk *zeb)
|
|
if (fs_map(zeb->fd, zeb->offset, &blknr, zeb->size) != 0)
|
|
goto error_close;
|
|
|
|
- if (lseek64(dev_fd, blknr * (uint64_t)zeb->size, SEEK_SET) < 0) {
|
|
+ if (lseek(dev_fd, blknr * (off_t)zeb->size, SEEK_SET) < 0) {
|
|
error_reason(strerror(errno));
|
|
goto error_close;
|
|
}
|
|
diff --git a/zkey/zkey-cryptsetup.c b/zkey/zkey-cryptsetup.c
|
|
index fae78c7..3238b69 100644
|
|
--- a/zkey/zkey-cryptsetup.c
|
|
+++ b/zkey/zkey-cryptsetup.c
|
|
@@ -490,10 +490,10 @@ static int keyfile_seek(int fd, size_t bytes)
|
|
{
|
|
size_t next_read;
|
|
ssize_t bytes_r;
|
|
- off64_t r;
|
|
+ off_t r;
|
|
char *tmp;
|
|
|
|
- r = lseek64(fd, bytes, SEEK_CUR);
|
|
+ r = lseek(fd, bytes, SEEK_CUR);
|
|
if (r > 0)
|
|
return 0;
|
|
if (r < 0 && errno != ESPIPE)
|