[parted-devel] name space cleanliness: mac_alloc and dos.c's raw_part_parse

Jim Meyering jim at meyering.net
Mon Mar 5 21:38:49 CET 2007


The following functions are not declared static, but aren't
mentioned in any other file.  So I'm making them "static":

	* libparted/labels/mac.c (mac_alloc): Declare static.
	* libparted/labels/dos.c (raw_part_parse): Declare static.

diff --git a/libparted/labels/dos.c b/libparted/labels/dos.c
index 519ba7e..3582037 100644
--- a/libparted/labels/dos.c
+++ b/libparted/labels/dos.c
@@ -760,7 +760,7 @@ raw_part_is_lba (const DosRawPartition* raw_part)
 	return 0;
 }

-PedPartition*
+static PedPartition*
 raw_part_parse (const PedDisk* disk, const DosRawPartition* raw_part,
 	        PedSector lba_offset, PedPartitionType type)
 {
diff --git a/libparted/labels/mac.c b/libparted/labels/mac.c
index aeb0f5a..32b98b0 100644
--- a/libparted/labels/mac.c
+++ b/libparted/labels/mac.c
@@ -257,7 +257,7 @@ error:
 	return 0;
 }

-PedDisk*
+static PedDisk*
 mac_alloc (const PedDevice* dev)
 {
 	PedDisk*		disk;



More information about the parted-devel mailing list