From 56aa396d8359276d778d41aa509041c8c75b4e96 Mon Sep 17 00:00:00 2001 From: Cheyenne Wills Date: Thu, 5 Nov 2020 13:50:59 -0700 Subject: [PATCH] vos: Cleanup function definitions The functions defined within vos.c are not referenced outside of vos.c but are not declared as static. Convert the functions within vos.c to static declarations. Change-Id: Ia684e698adc53ced964e10ee0496cb52a3af564e Reviewed-on: https://gerrit.openafs.org/14009 Reviewed-by: Michael Meffie Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- src/volser/vos.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/volser/vos.c b/src/volser/vos.c index 6fcdec8981..e2164455c7 100644 --- a/src/volser/vos.c +++ b/src/volser/vos.c @@ -58,8 +58,8 @@ #endif /* Local Prototypes */ -int PrintDiagnostics(char *astring, afs_int32 acode); -int GetVolumeInfo(afs_uint32 volid, afs_uint32 *server, afs_int32 *part, +static int PrintDiagnostics(char *astring, afs_int32 acode); +static int GetVolumeInfo(afs_uint32 volid, afs_uint32 *server, afs_int32 *part, afs_int32 *voltype, struct nvldbentry *rentry); struct tqElem { @@ -209,7 +209,7 @@ IsNumeric(char *name) /* * Parse a server dotted address and return the address in network byte order */ -afs_uint32 +static afs_uint32 GetServerNoresolve(char *aname) { int b1, b2, b3, b4; @@ -227,7 +227,7 @@ GetServerNoresolve(char *aname) /* * Parse a server name/address and return a non-loopback address in network byte order */ -afs_uint32 +static afs_uint32 GetServer(char *aname) { struct hostent *th; @@ -283,7 +283,7 @@ GetServer(char *aname) return 0; } -int +static int IsPartValid(afs_int32 partId, afs_uint32 server, afs_int32 *code) { struct partList dummyPartList; @@ -305,7 +305,7 @@ IsPartValid(afs_int32 partId, afs_uint32 server, afs_int32 *code) /*sends the contents of file associated with and to Rx Stream * associated with */ -int +static int SendFile(usd_handle_t ufd, struct rx_call *call, long blksize) { char *buffer = (char *)0; @@ -351,7 +351,7 @@ SendFile(usd_handle_t ufd, struct rx_call *call, long blksize) /* function invoked by UV_RestoreVolume, reads the data from rx_trx_stream and * writes it out to the volume. */ -afs_int32 +static afs_int32 WriteData(struct rx_call *call, void *rock) { char *filename = (char *) rock; @@ -413,7 +413,7 @@ WriteData(struct rx_call *call, void *rock) /* Receive data from stream into file associated * with */ -int +static int ReceiveFile(usd_handle_t ufd, struct rx_call *call, long blksize) { char *buffer = NULL; @@ -455,7 +455,7 @@ ReceiveFile(usd_handle_t ufd, struct rx_call *call, long blksize) return (error); } -afs_int32 +static afs_int32 DumpFunction(struct rx_call *call, void *rock) { char *filename = (char *)rock; @@ -4194,7 +4194,7 @@ RenameVolume(struct cmd_syndesc *as, void *arock) return 0; } -int +static int GetVolumeInfo(afs_uint32 volid, afs_uint32 *server, afs_int32 *part, afs_int32 *voltype, struct nvldbentry *rentry) { @@ -5796,7 +5796,7 @@ EndTrans(struct cmd_syndesc *as, void *arock) return 0; } -int +static int PrintDiagnostics(char *astring, afs_int32 acode) { switch (acode) {