]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: (dos) remove inline function from header file
authorKarel Zak <kzak@redhat.com>
Wed, 19 Jun 2013 12:42:45 +0000 (14:42 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Sep 2013 14:47:02 +0000 (16:47 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/fdiskdoslabel.c
fdisks/fdiskdoslabel.h

index 644d15bd4443de3c24a1a72f223f90c405f75cfb..637afd888490e33bddc8c3b54f58db8b48d11408 100644 (file)
@@ -60,6 +60,13 @@ static sector_t get_abs_partition_start(struct pte *pe)
        return pe->offset + dos_partition_get_start(pe->pt_entry);
 }
 
+static int is_cleared_partition(struct dos_partition *p)
+{
+       return !(!p || p->boot_ind || p->bh || p->bs || p->bc ||
+                p->sys_ind || p->eh || p->es || p->ec ||
+                dos_partition_get_start(p) || dos_partition_get_size(p));
+}
+
 static void warn_alignment(struct fdisk_context *cxt)
 {
        if (nowarn)
index e21b64ad17b631f4b2aff463e4678fa9a0af135e..efac02ecc460916fd05438a8b282619a7e4a9364 100644 (file)
@@ -27,13 +27,6 @@ extern struct pte ptes[MAXIMUM_PARTS];
 
 extern sector_t extended_offset;
 
-static inline int is_cleared_partition(struct dos_partition *p)
-{
-       return !(!p || p->boot_ind || p->bh || p->bs || p->bc ||
-                p->sys_ind || p->eh || p->es || p->ec ||
-                dos_partition_get_start(p) || dos_partition_get_size(p));
-}
-
 extern struct dos_partition *dos_get_pt_entry(int);
 
 extern void dos_print_mbr_id(struct fdisk_context *cxt);