vol: Make some functions static
authorSimon Wilkinson <sxw@your-file-system.com>
Sun, 17 Jun 2012 21:20:40 +0000 (22:20 +0100)
committerDerrick Brashear <shadow@dementix.org>
Wed, 27 Jun 2012 14:28:44 +0000 (07:28 -0700)
Make all of the functions in partition.c that are only used in that
file static.

Change-Id: I12e0980578b79459f50b6f4a46d2c423847e18a9
Reviewed-on: http://gerrit.openafs.org/7586
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>

src/vol/partition.c
src/vol/partition.h

index 91d211c..738fcc1 100644 (file)
 #include <jfs/filsys.h>
 #endif
 
+#ifdef AFS_NT40_ENV
+extern int VValidVPTEntry(struct vptab *vptp);
+#endif
+
 int aixlow_water = 8;          /* default 8% */
 struct DiskPartition64 *DiskPartitionList;
 
@@ -268,7 +272,7 @@ VInitPartition(char *path, char *devname, Device dev)
  *
  * Use partition name as devname.
  */
-int
+static int
 VCheckPartition(char *part, char *devname, int logging)
 {
     struct afs_stat_st status;
@@ -420,7 +424,7 @@ VIsNeverAttach(char *part)
  * used to attach /vicepX directories which aren't on dedicated
  * partitions, in the NAMEI fileserver.
  */
-void
+static void
 VAttachPartitions2(void)
 {
 #ifdef AFS_NAMEI_ENV
@@ -709,7 +713,7 @@ VAttachPartitions(void)
  * 0 invalid entry
  */
 
-int
+static int
 VValidVPTEntry(struct vptab *vpe)
 {
     int len = strlen(vpe->vp_name);
@@ -748,7 +752,7 @@ VValidVPTEntry(struct vptab *vpe)
     return 1;
 }
 
-int
+static int
 VCheckPartition(char *partName)
 {
     char volRoot[4];
index 28c96cf..6be1c29 100644 (file)
@@ -163,7 +163,6 @@ struct DiskPartitionStats64 {
 
 #ifdef AFS_NT40_ENV
 #include <WINNT/vptab.h>
-extern int VValidVPTEntry(struct vptab *vptp);
 #endif