Mercurial > aewl
comparison client.c @ 128:0a407fbb8092
serious mistake in pop() (forgot to set c->prev to NULL on pop)
author | arg@10ksloc.org |
---|---|
date | Thu, 20 Jul 2006 18:23:43 +0200 |
parents | 1480e19f6377 |
children | c478383db7c9 |
comparison
equal
deleted
inserted
replaced
127:1480e19f6377 | 128:0a407fbb8092 |
---|---|
282 c->prev->next = c->next; | 282 c->prev->next = c->next; |
283 if(c->next) | 283 if(c->next) |
284 c->next->prev = c->prev; | 284 c->next->prev = c->prev; |
285 *l = c->next; | 285 *l = c->next; |
286 | 286 |
287 c->prev = NULL; | |
287 if(clients) | 288 if(clients) |
288 clients->prev = c; | 289 clients->prev = c; |
289 c->next = clients; | 290 c->next = clients; |
290 clients = c; | 291 clients = c; |
291 arrange(NULL); | 292 arrange(NULL); |