void cmd_whok(char *cmdbuf) {
struct ctdluser temp;
- struct cdbdata *cdbus;
+ struct cdbdata cdbus;
int ra;
cprintf("%d Who knows room:\n", LISTING_FOLLOWS);
cdb_rewind(CDB_USERS);
- while (cdbus = cdb_next_item(CDB_USERS), cdbus != NULL) {
+ while (cdbus = cdb_next_item(CDB_USERS), cdbus.len>0) {
memset(&temp, 0, sizeof temp);
- memcpy(&temp, cdbus->ptr, sizeof temp);
- cdb_free(cdbus);
+ memcpy(&temp, cdbus.ptr, sizeof temp);
CtdlRoomAccess(&CC->room, &temp, &ra, NULL);
if ((!IsEmptyStr(temp.fullname)) &&