Undo part of openbsd-20021010 which changes ReSortCells_cb, and
authorNickolai Zeldovich <kolya@mit.edu>
Fri, 11 Oct 2002 01:50:40 +0000 (01:50 +0000)
committerNickolai Zeldovich <kolya@mit.edu>
Fri, 11 Oct 2002 01:50:40 +0000 (01:50 +0000)
have it return (void *) NULL instead, which is necessary to tell
afs_TraverseCells to not stop the traversal.

src/afs/afs_pioctl.c

index 2b105a2..9f0c39c 100644 (file)
@@ -2690,7 +2690,7 @@ DECL_PIOCTL(PSetSysName)
  * l - array of cell ids which have volumes that need to be sorted
  * vlonly - sort vl servers or file servers?
  */
-static void ReSortCells_cb(struct cell *cell, void *arg)
+static void *ReSortCells_cb(struct cell *cell, void *arg)
 {
     afs_int32 *p = (afs_int32 *) arg;
     afs_int32 *l = p + 1;
@@ -2703,6 +2703,8 @@ static void ReSortCells_cb(struct cell *cell, void *arg)
            ReleaseWriteLock(&cell->lock);
        }
     }
+
+    return NULL;
 }
 
 static void ReSortCells(int s, afs_int32 *l, int vlonly)