mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
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 <mmeffie@sinenomine.net> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
This commit is contained in:
parent
a3be2c74a9
commit
56aa396d83
@ -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 <fd> and <blksize> to Rx Stream
|
||||
* associated with <call> */
|
||||
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 <call> stream into file associated
|
||||
* with <fd> <blksize>
|
||||
*/
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user