diff options
author | Karel Zak | 2015-01-26 12:12:30 +0100 |
---|---|---|
committer | Karel Zak | 2015-01-26 12:26:00 +0100 |
commit | 9bbcf43f882c29ef2003950d8e3d468f05996205 (patch) | |
tree | 760c8ee12190881b6fee5fef09ff77831a1f7be8 /libfdisk/src/fdiskP.h | |
parent | libmount: add options map to docs (diff) | |
download | kernel-qcow2-util-linux-9bbcf43f882c29ef2003950d8e3d468f05996205.tar.gz kernel-qcow2-util-linux-9bbcf43f882c29ef2003950d8e3d468f05996205.tar.xz kernel-qcow2-util-linux-9bbcf43f882c29ef2003950d8e3d468f05996205.zip |
libfdisk: don't use off_t in public API
It's better to use exact and explicitly defined types (e.g. uint64_t)
rather than something like off_t to make code more portable.
[reported with gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3)]
The patch also fixes one debug message.
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/fdiskP.h')
-rw-r--r-- | libfdisk/src/fdiskP.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libfdisk/src/fdiskP.h b/libfdisk/src/fdiskP.h index 59ab0c339..dc561f389 100644 --- a/libfdisk/src/fdiskP.h +++ b/libfdisk/src/fdiskP.h @@ -185,7 +185,8 @@ struct fdisk_label_operations { /* list disklabel details */ int (*list)(struct fdisk_context *cxt); /* returns offset and size of the 'n' part of the PT */ - int (*locate)(struct fdisk_context *cxt, int n, const char **name, off_t *offset, size_t *size); + int (*locate)(struct fdisk_context *cxt, int n, const char **name, + uint64_t *offset, size_t *size); /* reorder partitions */ int (*reorder)(struct fdisk_context *cxt); |