diff options
-rw-r--r-- | balkan/bsdlabel.c | 4 | ||||
-rw-r--r-- | balkan/sun.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/balkan/bsdlabel.c b/balkan/bsdlabel.c index 7856471fd..d2614e7ed 100644 --- a/balkan/bsdlabel.c +++ b/balkan/bsdlabel.c @@ -53,8 +53,6 @@ struct bsd_disklabel { } d_partitions[BSD_MAXPARTITIONS]; /* actually may be more */ }; -long long llseek(int fd, long long offset, int whence); - #if 0 static unsigned short xbsd_dkcksum (struct bsd_disklabel *lp) { unsigned short *start, *end; @@ -82,7 +80,7 @@ int bsdlReadTable(int fd, struct partitionTable * table) { table->sectorSize = 512; - if (lseek(fd, BSD_LABEL_OFFSET, SEEK_SET) < 0) + if (lseek64(fd, BSD_LABEL_OFFSET, SEEK_SET) < 0) return BALKAN_ERROR_ERRNO; if (read(fd, &label, sizeof(label)) != sizeof(label)) diff --git a/balkan/sun.c b/balkan/sun.c index b0cdfa3a5..d3c11703b 100644 --- a/balkan/sun.c +++ b/balkan/sun.c @@ -39,8 +39,6 @@ struct singlePartitionTable { #define WHOLE_DISK 5 #define UFS_SUPER_MAGIC 0x00011954 -long long llseek(int fd, long long offset, int whence); - int sunpReadTable(int fd, struct partitionTable * table) { struct singlePartitionTable singleTable; int i, rc, magic; @@ -99,7 +97,7 @@ int sunpReadTable(int fd, struct partitionTable * table) { default: if (table->parts[i].type != WHOLE_DISK && - llseek(fd, (8192 + 0x55c + SECTOR_SIZE * + lseek64(fd, (8192 + 0x55c + SECTOR_SIZE * (unsigned long long)table->parts[i].startSector), SEEK_SET) >= 0 && read(fd, &magic, 4) == 4 && |