From 1b4d2b53ccb4bece0c5be78fa87ba085f070bdf5 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sat, 31 Mar 2012 15:11:10 -0400 Subject: [PATCH] vol-dump: Make static things static vol-dump is a self contained object. Make everything in it static to make clear that these functions are not being used by other objects in the tree. Change-Id: I0345c884167ed322fdf7a6e83b77b0ae261b9d8f Reviewed-on: http://gerrit.openafs.org/7103 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/volser/vol-dump.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/volser/vol-dump.c b/src/volser/vol-dump.c index 2924bb1a1..889d2c9f3 100644 --- a/src/volser/vol-dump.c +++ b/src/volser/vol-dump.c @@ -54,9 +54,10 @@ int VolumeChanged; /* needed by physio - leave alone */ int verbose = 0; /* Forward Declarations */ -void HandleVolume(struct DiskPartition64 *partP, char *name, char *filename, int fromtime); -Volume *AttachVolume(struct DiskPartition64 *dp, char *volname, - struct VolumeHeader *header); +static void HandleVolume(struct DiskPartition64 *partP, char *name, + char *filename, int fromtime); +static Volume *AttachVolume(struct DiskPartition64 *dp, char *volname, + struct VolumeHeader *header); static void DoMyVolDump(Volume * vp, struct DiskPartition64 *dp, char *dumpfile, int fromtime); @@ -67,7 +68,7 @@ static void DoMyVolDump(Volume * vp, struct DiskPartition64 *dp, char name[VMAXPATHLEN]; -int +static int ReadHdr1(IHandle_t * ih, char *to, int size, u_int magic, u_int version) { int code; @@ -80,7 +81,7 @@ ReadHdr1(IHandle_t * ih, char *to, int size, u_int magic, u_int version) } -Volume * +static Volume * AttachVolume(struct DiskPartition64 * dp, char *volname, struct VolumeHeader * header) { @@ -209,7 +210,7 @@ handleit(struct cmd_syndesc *as, void *arock) return 0; } -void +static void HandleVolume(struct DiskPartition64 *dp, char *name, char *filename, int fromtime) { struct VolumeHeader header; -- 2.39.5