From: Derrick Brashear Date: Wed, 26 Dec 2001 20:49:20 +0000 (+0000) Subject: STABLE12-afs-cell-avoid-need-for-new-prototype-20011226 X-Git-Tag: openafs-stable-1_2_3~60 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2d373edace202bc9841325a45a5935e6988c4be9;p=packages%2Fo%2Fopenafs.git STABLE12-afs-cell-avoid-need-for-new-prototype-20011226 reogranize so we don't need to add a prototype based on report from kolya@mit.edu --- diff --git a/src/afs/afs_cell.c b/src/afs/afs_cell.c index 233433eb5..91aa0b084 100644 --- a/src/afs/afs_cell.c +++ b/src/afs/afs_cell.c @@ -319,21 +319,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; @@ -363,6 +348,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) register afs_int32 cellindex;