From 7034b980f7381fd99aa53f85a27a7260432c0c41 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sun, 17 Jun 2012 22:20:40 +0100 Subject: [PATCH] vol: Make some functions static 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 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/vol/partition.c | 12 ++++++++---- src/vol/partition.h | 1 - 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/vol/partition.c b/src/vol/partition.c index 91d211c..738fcc1 100644 --- a/src/vol/partition.c +++ b/src/vol/partition.c @@ -124,6 +124,10 @@ #include #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]; diff --git a/src/vol/partition.h b/src/vol/partition.h index 28c96cf..6be1c29 100644 --- a/src/vol/partition.h +++ b/src/vol/partition.h @@ -163,7 +163,6 @@ struct DiskPartitionStats64 { #ifdef AFS_NT40_ENV #include -extern int VValidVPTEntry(struct vptab *vptp); #endif -- 1.9.4