From fa0d85ce03b05fba81f880abac4197fe8bc75776 Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Fri, 11 Oct 2002 01:50:40 +0000 Subject: [PATCH] Undo part of openbsd-20021010 which changes ReSortCells_cb, and have it return (void *) NULL instead, which is necessary to tell afs_TraverseCells to not stop the traversal. --- src/afs/afs_pioctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 2b105a25f..9f0c39c33 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -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) -- 2.39.5