summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/table.c
diff options
context:
space:
mode:
authorKarel Zak2014-09-23 11:39:02 +0200
committerKarel Zak2014-10-07 14:55:32 +0200
commite54b1c6fcb42cee06d2b72f110844ff9ed98415d (patch)
tree43629ac6fd531dd5dd5fb7f149a937cde92b4f70 /libfdisk/src/table.c
parentsfdisk: add --backup and --backup-file (diff)
downloadkernel-qcow2-util-linux-e54b1c6fcb42cee06d2b72f110844ff9ed98415d.tar.gz
kernel-qcow2-util-linux-e54b1c6fcb42cee06d2b72f110844ff9ed98415d.tar.xz
kernel-qcow2-util-linux-e54b1c6fcb42cee06d2b72f110844ff9ed98415d.zip
sfdisk: be sensitive to PT limits
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/table.c')
-rw-r--r--libfdisk/src/table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdisk/src/table.c b/libfdisk/src/table.c
index efa55cd10..fb8f52c7e 100644
--- a/libfdisk/src/table.c
+++ b/libfdisk/src/table.c
@@ -101,7 +101,7 @@ int fdisk_table_is_empty(struct fdisk_table *tb)
*
* Returns: number of entries in table.
*/
-int fdisk_table_get_nents(struct fdisk_table *tb)
+size_t fdisk_table_get_nents(struct fdisk_table *tb)
{
return tb ? tb->nents : 0;
}