commit - e86e193e010b44bc567c0fb2dfbebd81b9735358
commit + 6ef20e0f9a6c6f82fbb82b6c60f98b8e8b401b8d
blob - 1a4d4c0b6d1179ae22776d8f57df80c2754d71d8
blob + b7a5cbc04a2fa1389fb39e2dfd5b806c44a5598f
--- src/ngircd/class.c
+++ src/ngircd/class.c
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
blob - 3507836f857f0c7ce261e440f80ab0ed9396f623
blob + 8c06c2e2dde562b84f18703933574bd364ed471b
--- src/ngircd/class.h
+++ src/ngircd/class.h
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));
blob - 736412f1fcdde91459540de1b51df995b2003e70
blob + 1d91609a7118c43fb3c43e665634b4dcdcacb33e
--- src/ngircd/irc-info.c
+++ src/ngircd/irc-info.c
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,