[parted-devel] [PATCH] Don't export linux_get_*_alignment functions

Colin Watson cjwatson at ubuntu.com
Fri Feb 26 17:37:53 UTC 2010


These functions are only used in libparted/arch/linux.c or via
linux_dev_ops, so we shouldn't be exporting them.

diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 49ab08c..3c806e4 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -2563,7 +2563,7 @@ linux_disk_commit (PedDisk* disk)
 }
 
 #if USE_BLKID
-PedAlignment*
+static PedAlignment*
 linux_get_minimum_alignment(const PedDevice *dev)
 {
         blkid_topology tp = LINUX_SPECIFIC(dev)->topology;
@@ -2581,7 +2581,7 @@ linux_get_minimum_alignment(const PedDevice *dev)
                 blkid_topology_get_minimum_io_size(tp) / dev->sector_size);
 }
 
-PedAlignment*
+static PedAlignment*
 linux_get_optimum_alignment(const PedDevice *dev)
 {
         blkid_topology tp = LINUX_SPECIFIC(dev)->topology;

-- 
Colin Watson                                       [cjwatson at ubuntu.com]



More information about the parted-devel mailing list