Lists_Del(&My_Classes[Class], Mask);
}
-GLOBAL struct list_head
+GLOBAL struct list_head *
Class_GetList(const int Class)
{
assert(Class < CLASS_COUNT);
- return My_Classes[Class];
+ return &My_Classes[Class];
}
GLOBAL void
GLOBAL bool Class_IsMember PARAMS((const int Class, CLIENT *Client));
-GLOBAL struct list_head Class_GetList PARAMS((const int Class));
+GLOBAL struct list_head *Class_GetList PARAMS((const int Class));
GLOBAL void Class_Expire PARAMS((void));
COMMAND *cmd;
time_t time_now;
unsigned int days, hrs, mins;
- struct list_head list;
+ struct list_head *list;
struct list_elem *list_item;
assert(Client != NULL);
list = Class_GetList(CLASS_GLINE);
else
list = Class_GetList(CLASS_KLINE);
- list_item = Lists_GetFirst(&list);
+ list_item = Lists_GetFirst(list);
while (list_item) {
if (!IRC_WriteStrClient(from, RPL_STATSXLINE_MSG,
Client_ID(from), query,