X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Froom_ops.c;h=15a6031e8ab4f30e20c3758e61a03d32298c95a2;hb=d79338d4b3d99c481740a66e746f80d5b98e47ac;hp=1e4209bdc6867bccc3a8b9e10ed9b1d15d2bb99b;hpb=ff25103f77ff7e077014c4cf3ee7ff27ff85d761;p=citadel.git diff --git a/citadel/room_ops.c b/citadel/room_ops.c index 1e4209bdc..15a6031e8 100644 --- a/citadel/room_ops.c +++ b/citadel/room_ops.c @@ -565,8 +565,7 @@ void lputfloor(struct floor *flbuf, int floor_num) /* * Traverse the room file... */ -void CtdlForEachRoom(void (*CallBack) (struct ctdlroom *EachRoom, void *out_data), - void *in_data) +void CtdlForEachRoom(ForEachRoomCallBack CB, void *in_data) { struct ctdlroom qrbuf; struct cdbdata *cdbqr; @@ -582,7 +581,7 @@ void CtdlForEachRoom(void (*CallBack) (struct ctdlroom *EachRoom, void *out_data cdb_free(cdbqr); room_sanity_check(&qrbuf); if (qrbuf.QRflags & QR_INUSE) { - (*CallBack)(&qrbuf, in_data); + CB(&qrbuf, in_data); } } }