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/label.c | |
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/label.c')
-rw-r--r-- | libfdisk/src/label.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdisk/src/label.c b/libfdisk/src/label.c index beff2e827..717a8cd80 100644 --- a/libfdisk/src/label.c +++ b/libfdisk/src/label.c @@ -375,7 +375,7 @@ int fdisk_create_disklabel(struct fdisk_context *cxt, const char *name) * Returns: 0 on succes, <0 on error, 1 no more items. */ int fdisk_locate_disklabel(struct fdisk_context *cxt, int n, const char **name, - off_t *offset, size_t *size) + uint64_t *offset, size_t *size) { if (!cxt || !cxt->label) return -EINVAL; |