mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-29 16:14:43 +00:00
* Added: $guid to esay variables
* Added: New bigsay font: spider, use with .bigsay -spider cowabunga! * Fixed: Error in printing pointers would make lots of debug output go missing * Changed: Debug output (./energymech -d -o <file>) now appends instead of truncating * Fixed: Botnet auth messages now propagate correctly throughout the botnet
This commit is contained in:
@@ -194,18 +194,20 @@ Strp *prepend_strp(Strp **pp, const char *string)
|
||||
}
|
||||
|
||||
/*
|
||||
* Free() a chain of Strp's
|
||||
* Free() a whole linked list of any suitable type (Strp, Banlist)
|
||||
*/
|
||||
void purge_strplist(Strp *sp)
|
||||
void purge_linklist(void **list)
|
||||
{
|
||||
Strp *nxt;
|
||||
Strp *sp,*nxt;
|
||||
|
||||
sp = *list;
|
||||
while(sp)
|
||||
{
|
||||
nxt = sp->next;
|
||||
Free((char**)&sp);
|
||||
sp = nxt;
|
||||
}
|
||||
*list = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user