From eed293b295f9d29baa4add36a1c504f5bdeb8df0 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Tue, 26 Jun 2012 17:43:29 +0100 Subject: [PATCH] viced: Make private host stuff static The function initInterfaceAddr_r is internal to the host.c file, so make it static to make this clear. Change-Id: I4dd2de5a7071e68f103bb56347551a3e535d2fd9 Reviewed-on: http://gerrit.openafs.org/7587 Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/viced/host.c | 3 ++- src/viced/host.h | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/viced/host.c b/src/viced/host.c index 87f12b32a..29c4b21cb 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -83,6 +83,7 @@ struct enumclient_args { static void h_SetupCallbackConn_r(struct host * host); static int h_threadquota(int); +static int initInterfaceAddr_r(struct host *, struct interfaceAddr *); #define CESPERBLOCK 73 struct CEBlock { /* block of CESPERBLOCK file entries */ @@ -4006,7 +4007,7 @@ h_CheckHosts(void) * * The addresses in the interfaceAddr list are in host byte order. */ -int +static int initInterfaceAddr_r(struct host *host, struct interfaceAddr *interf) { int i, j; diff --git a/src/viced/host.h b/src/viced/host.h index d67f11b8c..e59c6725c 100644 --- a/src/viced/host.h +++ b/src/viced/host.h @@ -227,12 +227,10 @@ extern int h_NBLock_r(struct host *host); extern void h_DumpHosts(void); extern void h_InitHostPackage(void); extern void h_CheckHosts(void ); -extern int initInterfaceAddr_r(struct host *host, struct interfaceAddr *interf); extern void h_AddHostToAddrHashTable_r(afs_uint32 addr, afs_uint16 port, struct host * host); extern void h_AddHostToUuidHashTable_r(afsUUID * uuid, struct host * host); extern int h_DeleteHostFromAddrHashTable_r(afs_uint32 addr, afs_uint16 port, struct host *host); extern int h_DeleteHostFromUuidHashTable_r(struct host *host); -extern int initInterfaceAddr_r(struct host *host, struct interfaceAddr *interf); extern int addInterfaceAddr_r(struct host *host, afs_uint32 addr, afs_uint16 port); extern int removeInterfaceAddr_r(struct host *host, afs_uint32 addr, afs_uint16 port); extern afs_int32 hpr_Initialize(struct ubik_client **); -- 2.39.5