extend deletion functions in LL.c, use them to make "bye" client command work

This commit is contained in:
marschap
2008-11-30 15:30:28 +00:00
parent a197581bd3
commit dcc643ec18
13 changed files with 79 additions and 51 deletions
+6 -4
View File
@@ -1,6 +1,8 @@
/*
* client.c
* This file is part of LCDd, the lcdproc server.
/** \file client.c
* Define all the client data and actions.
*/
/* This file is part of LCDd, the lcdproc server.
*
* This file is released under the GNU General Public License. Refer to the
* COPYING file distributed with this package.
@@ -228,7 +230,7 @@ client_remove_screen(Client *c, Screen *s)
debug(RPT_DEBUG, "%s(c=[%d], s=[%s])", __FUNCTION__, c->sock, s->id);
/* TODO: Check for errors here?*/
LL_Remove(c->screenlist, (void *) s);
LL_Remove(c->screenlist, (void *) s, NEXT);
/* Now, remove it from the screenlist...*/
screenlist_remove(s);