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
|
#endif
|
||||||
|
|
||||||
/* Local Prototypes */
|
/* Local Prototypes */
|
||||||
int PrintDiagnostics(char *astring, afs_int32 acode);
|
static int PrintDiagnostics(char *astring, afs_int32 acode);
|
||||||
int GetVolumeInfo(afs_uint32 volid, afs_uint32 *server, afs_int32 *part,
|
static int GetVolumeInfo(afs_uint32 volid, afs_uint32 *server, afs_int32 *part,
|
||||||
afs_int32 *voltype, struct nvldbentry *rentry);
|
afs_int32 *voltype, struct nvldbentry *rentry);
|
||||||
|
|
||||||
struct tqElem {
|
struct tqElem {
|
||||||
@ -209,7 +209,7 @@ IsNumeric(char *name)
|
|||||||
/*
|
/*
|
||||||
* Parse a server dotted address and return the address in network byte order
|
* Parse a server dotted address and return the address in network byte order
|
||||||
*/
|
*/
|
||||||
afs_uint32
|
static afs_uint32
|
||||||
GetServerNoresolve(char *aname)
|
GetServerNoresolve(char *aname)
|
||||||
{
|
{
|
||||||
int b1, b2, b3, b4;
|
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
|
* Parse a server name/address and return a non-loopback address in network byte order
|
||||||
*/
|
*/
|
||||||
afs_uint32
|
static afs_uint32
|
||||||
GetServer(char *aname)
|
GetServer(char *aname)
|
||||||
{
|
{
|
||||||
struct hostent *th;
|
struct hostent *th;
|
||||||
@ -283,7 +283,7 @@ GetServer(char *aname)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
IsPartValid(afs_int32 partId, afs_uint32 server, afs_int32 *code)
|
IsPartValid(afs_int32 partId, afs_uint32 server, afs_int32 *code)
|
||||||
{
|
{
|
||||||
struct partList dummyPartList;
|
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
|
/*sends the contents of file associated with <fd> and <blksize> to Rx Stream
|
||||||
* associated with <call> */
|
* associated with <call> */
|
||||||
int
|
static int
|
||||||
SendFile(usd_handle_t ufd, struct rx_call *call, long blksize)
|
SendFile(usd_handle_t ufd, struct rx_call *call, long blksize)
|
||||||
{
|
{
|
||||||
char *buffer = (char *)0;
|
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
|
/* function invoked by UV_RestoreVolume, reads the data from rx_trx_stream and
|
||||||
* writes it out to the volume. */
|
* writes it out to the volume. */
|
||||||
afs_int32
|
static afs_int32
|
||||||
WriteData(struct rx_call *call, void *rock)
|
WriteData(struct rx_call *call, void *rock)
|
||||||
{
|
{
|
||||||
char *filename = (char *) rock;
|
char *filename = (char *) rock;
|
||||||
@ -413,7 +413,7 @@ WriteData(struct rx_call *call, void *rock)
|
|||||||
/* Receive data from <call> stream into file associated
|
/* Receive data from <call> stream into file associated
|
||||||
* with <fd> <blksize>
|
* with <fd> <blksize>
|
||||||
*/
|
*/
|
||||||
int
|
static int
|
||||||
ReceiveFile(usd_handle_t ufd, struct rx_call *call, long blksize)
|
ReceiveFile(usd_handle_t ufd, struct rx_call *call, long blksize)
|
||||||
{
|
{
|
||||||
char *buffer = NULL;
|
char *buffer = NULL;
|
||||||
@ -455,7 +455,7 @@ ReceiveFile(usd_handle_t ufd, struct rx_call *call, long blksize)
|
|||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
||||||
afs_int32
|
static afs_int32
|
||||||
DumpFunction(struct rx_call *call, void *rock)
|
DumpFunction(struct rx_call *call, void *rock)
|
||||||
{
|
{
|
||||||
char *filename = (char *)rock;
|
char *filename = (char *)rock;
|
||||||
@ -4194,7 +4194,7 @@ RenameVolume(struct cmd_syndesc *as, void *arock)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
GetVolumeInfo(afs_uint32 volid, afs_uint32 *server, afs_int32 *part, afs_int32 *voltype,
|
GetVolumeInfo(afs_uint32 volid, afs_uint32 *server, afs_int32 *part, afs_int32 *voltype,
|
||||||
struct nvldbentry *rentry)
|
struct nvldbentry *rentry)
|
||||||
{
|
{
|
||||||
@ -5796,7 +5796,7 @@ EndTrans(struct cmd_syndesc *as, void *arock)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
PrintDiagnostics(char *astring, afs_int32 acode)
|
PrintDiagnostics(char *astring, afs_int32 acode)
|
||||||
{
|
{
|
||||||
switch (acode) {
|
switch (acode) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user