Fixed typo and removed some unnecessary variables.

This commit is contained in:
Guus Sliepen 2000-04-25 20:17:44 +00:00
parent 5b72422857
commit dad90e82d3

View file

@ -185,9 +185,8 @@ cp
} }
/* Remove a queue element */ /* Remove a queue element */
void del_queue(packet_queue_t **q, packet_element_t *e) void del_queue(packet_queue_t **q, queue_element_t *e)
{ {
queue_element_t *p, *n;
cp cp
free(e->packet); free(e->packet);
@ -230,7 +229,7 @@ cp
void flush_queue(conn_list_t *cl, packet_queue_t **pq, void flush_queue(conn_list_t *cl, packet_queue_t **pq,
int (*function)(conn_list_t*,void*)) int (*function)(conn_list_t*,void*))
{ {
queue_element_t *p, *prev = NULL, *next = NULL; queue_element_t *p, *next = NULL;
cp cp
for(p = (*pq)->head; p != NULL; ) for(p = (*pq)->head; p != NULL; )
{ {