From 94bc1753e9bbde8b63a42953263650b1db1666e7 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 13 Nov 2001 20:31:31 +0000 Subject: [PATCH] afs-cell-avoid-need-for-new-prototype-20011113 reogranize so we don't need to add a prototype based on report from kolya@mit.edu --- src/afs/afs_cell.c | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/afs/afs_cell.c b/src/afs/afs_cell.c index 1061d3d6a..ca69560d9 100644 --- a/src/afs/afs_cell.c +++ b/src/afs/afs_cell.c @@ -347,21 +347,6 @@ struct cell *afs_GetCellByName(acellName, locktype) } /*afs_GetCellByName*/ -struct cell *afs_GetCell(acell, locktype) - register afs_int32 acell; - afs_int32 locktype; -{ - return afs_GetCellInternal(acell, locktype, 1); -} - -/* This is only to be called if the caller is already holding afs_xcell */ -struct cell *afs_GetCellNoLock(acell, locktype) - register afs_int32 acell; - afs_int32 locktype; -{ - return afs_GetCellInternal(acell, locktype, 0); -} - static struct cell *afs_GetCellInternal(acell, locktype, holdxcell) register afs_int32 acell; afs_int32 locktype; @@ -391,6 +376,20 @@ static struct cell *afs_GetCellInternal(acell, locktype, holdxcell) } /*afs_GetCell*/ +struct cell *afs_GetCell(acell, locktype) + register afs_int32 acell; + afs_int32 locktype; +{ + return afs_GetCellInternal(acell, locktype, 1); +} + +/* This is only to be called if the caller is already holding afs_xcell */ +struct cell *afs_GetCellNoLock(acell, locktype) + register afs_int32 acell; + afs_int32 locktype; +{ + return afs_GetCellInternal(acell, locktype, 0); +} struct cell *afs_GetCellByIndex(cellindex, locktype, refresh) register afs_int32 cellindex; -- 2.39.5