From 4bd0f17e6d598d4d98ed80d5d1f95bc4b2a7e622 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 5 Mar 2011 09:21:15 -0500 Subject: [PATCH] volser: make private lockproc routines private FindIndex and SetAValue are only used within lockprocs.c. Make them static and remove them from lockprocs_prototypes.h Change-Id: I09774fdc2368941191e17d9ce1fc13a4ff5bec42 Reviewed-on: http://gerrit.openafs.org/4135 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/volser/lockprocs.c | 4 ++-- src/volser/lockprocs_prototypes.h | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/volser/lockprocs.c b/src/volser/lockprocs.c index fc4fa1f..5c92ec6 100644 --- a/src/volser/lockprocs.c +++ b/src/volser/lockprocs.c @@ -44,7 +44,7 @@ * If server is zero, will match first index of ANY server and partition * Zero is a valid partition field. */ -int +static int FindIndex(struct nvldbentry *entry, afs_uint32 server, afs_int32 part, afs_int32 type) { int e; @@ -76,7 +76,7 @@ FindIndex(struct nvldbentry *entry, afs_uint32 server, afs_int32 part, afs_int32 } /* Changes the rw site only */ -void +static void SetAValue(struct nvldbentry *entry, afs_uint32 oserver, afs_int32 opart, afs_uint32 nserver, afs_int32 npart, afs_int32 type) { diff --git a/src/volser/lockprocs_prototypes.h b/src/volser/lockprocs_prototypes.h index 9c9e990..67bb14c 100644 --- a/src/volser/lockprocs_prototypes.h +++ b/src/volser/lockprocs_prototypes.h @@ -1,8 +1,5 @@ #ifndef _LOCKPROCS_PROTOTYPES_H #define _LOCKPROCS_PROTOTYPES_H -extern int FindIndex(struct nvldbentry *entry, afs_uint32 server, afs_int32 part, afs_int32 type); -extern void SetAValue(struct nvldbentry *entry, afs_uint32 oserver, afs_int32 opart, - afs_uint32 nserver, afs_int32 npart, afs_int32 type); extern void Lp_SetRWValue(struct nvldbentry *entry, afs_uint32 oserver, afs_int32 opart, afs_uint32 nserver, afs_int32 npart); extern void Lp_SetROValue(struct nvldbentry *entry, afs_uint32 oserver, -- 1.9.4