]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-afs-cell-avoid-need-for-new-prototype-20011226
authorDerrick Brashear <shadow@dementia.org>
Wed, 26 Dec 2001 20:49:20 +0000 (20:49 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 26 Dec 2001 20:49:20 +0000 (20:49 +0000)
reogranize so we don't need to add a prototype

based on report from kolya@mit.edu

src/afs/afs_cell.c

index 233433eb5deff10b9e2f5d644c7616c5b72907bc..91aa0b0841108c502405ede1e91e2f3fe9268fe6 100644 (file)
@@ -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;