make_ext4fs: Remove off64_t in favor of standard off_t
[project/make_ext4fs.git] / ext4_utils.c
index 2f1dbb2..1a886d7 100644 (file)
@@ -94,9 +94,9 @@ int ext4_bg_has_super_block(int bg)
 /* Function to read the primary superblock */
 void read_sb(int fd, struct ext4_super_block *sb)
 {
 /* Function to read the primary superblock */
 void read_sb(int fd, struct ext4_super_block *sb)
 {
-       off64_t ret;
+       off_t ret;
 
 
-       ret = lseek64(fd, 1024, SEEK_SET);
+       ret = lseek(fd, 1024, SEEK_SET);
        if (ret < 0)
                critical_error_errno("failed to seek to superblock");
 
        if (ret < 0)
                critical_error_errno("failed to seek to superblock");
 
@@ -110,9 +110,9 @@ void read_sb(int fd, struct ext4_super_block *sb)
 /* Function to write a primary or backup superblock at a given offset */
 void write_sb(int fd, unsigned long long offset, struct ext4_super_block *sb)
 {
 /* Function to write a primary or backup superblock at a given offset */
 void write_sb(int fd, unsigned long long offset, struct ext4_super_block *sb)
 {
-       off64_t ret;
+       off_t ret;
 
 
-       ret = lseek64(fd, offset, SEEK_SET);
+       ret = lseek(fd, offset, SEEK_SET);
        if (ret < 0)
                critical_error_errno("failed to seek to superblock");
 
        if (ret < 0)
                critical_error_errno("failed to seek to superblock");
 
@@ -492,18 +492,18 @@ u64 parse_num(const char *arg)
 
 int read_ext(int fd, int verbose)
 {
 
 int read_ext(int fd, int verbose)
 {
-       off64_t ret;
+       off_t ret;
        struct ext4_super_block sb;
 
        read_sb(fd, &sb);
 
        ext4_parse_sb_info(&sb);
 
        struct ext4_super_block sb;
 
        read_sb(fd, &sb);
 
        ext4_parse_sb_info(&sb);
 
-       ret = lseek64(fd, info.len, SEEK_SET);
+       ret = lseek(fd, info.len, SEEK_SET);
        if (ret < 0)
                critical_error_errno("failed to seek to end of input image");
 
        if (ret < 0)
                critical_error_errno("failed to seek to end of input image");
 
-       ret = lseek64(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET);
+       ret = lseek(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET);
        if (ret < 0)
                critical_error_errno("failed to seek to block group descriptors");
 
        if (ret < 0)
                critical_error_errno("failed to seek to block group descriptors");