summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/table.c
diff options
context:
space:
mode:
authorKarel Zak2014-12-04 11:41:51 +0100
committerKarel Zak2014-12-04 11:41:51 +0100
commit0073a4cff2ef7670e4f657b1a6eaf519997edddc (patch)
tree9566a3654882bfdb79a0ead22d9500a72f71c028 /libfdisk/src/table.c
parentlibfdisk: fix cfdisk freespace analyze (diff)
downloadkernel-qcow2-util-linux-0073a4cff2ef7670e4f657b1a6eaf519997edddc.tar.gz
kernel-qcow2-util-linux-0073a4cff2ef7670e4f657b1a6eaf519997edddc.tar.xz
kernel-qcow2-util-linux-0073a4cff2ef7670e4f657b1a6eaf519997edddc.zip
libfdisk: rename sector_t to fdisk_sector_t
.. just to avoid too generic names for public API. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/table.c')
-rw-r--r--libfdisk/src/table.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/libfdisk/src/table.c b/libfdisk/src/table.c
index 9747f7dc8..221ec46bd 100644
--- a/libfdisk/src/table.c
+++ b/libfdisk/src/table.c
@@ -335,8 +335,8 @@ int fdisk_table_sort_partitions(struct fdisk_table *tb,
/* allocates a new freespace description */
static int new_freespace(struct fdisk_context *cxt,
- uint64_t start,
- uint64_t end,
+ fdisk_sector_t start,
+ fdisk_sector_t end,
struct fdisk_partition *parent,
struct fdisk_partition **pa)
{
@@ -365,8 +365,8 @@ static int new_freespace(struct fdisk_context *cxt,
static int table_add_freespace(
struct fdisk_context *cxt,
struct fdisk_table *tb,
- uint64_t start,
- uint64_t end,
+ fdisk_sector_t start,
+ fdisk_sector_t end,
struct fdisk_partition *parent)
{
struct fdisk_partition *pa, *x, *real_parent = NULL, *best = NULL;
@@ -424,8 +424,7 @@ static int check_container_freespace(struct fdisk_context *cxt,
{
struct fdisk_iter itr;
struct fdisk_partition *pa;
- uint64_t x, last, grain;
- uint64_t lastplusoff;
+ fdisk_sector_t x, last, grain, lastplusoff;
int rc = 0;
assert(cxt);
@@ -482,7 +481,7 @@ done:
int fdisk_get_freespaces(struct fdisk_context *cxt, struct fdisk_table **tb)
{
int rc = 0;
- uint64_t last, grain;
+ fdisk_sector_t last, grain;
struct fdisk_table *parts = NULL;
struct fdisk_partition *pa;
struct fdisk_iter itr;
@@ -556,7 +555,7 @@ int fdisk_table_wrong_order(struct fdisk_table *tb)
{
struct fdisk_partition *pa;
struct fdisk_iter itr;
- sector_t last = 0;
+ fdisk_sector_t last = 0;
DBG(TAB, ul_debugobj(tb, "wrong older check"));