projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move free()s at the end om main() to the proper destructor functions.
[tinc]
/
lib
/
list.c
diff --git
a/lib/list.c
b/lib/list.c
index
2c08978
..
2f9f611
100644
(file)
--- a/
lib/list.c
+++ b/
lib/list.c
@@
-1,7
+1,7
@@
/*
list.c -- functions to deal with double linked lists
/*
list.c -- functions to deal with double linked lists
- Copyright (C) 2000-200
3 Ivo Timmermans <ivo@o2w.nl>
- 2000-200
3 Guus Sliepen <guus@sliepen.eu
.org>
+ Copyright (C) 2000-200
5 Ivo Timmermans
+ 2000-200
6 Guus Sliepen <guus@tinc-vpn
.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id
: list.c,v 1.3 2003/08/24 20:38:20 guus Exp
$
+ $Id$
*/
#include "system.h"
*/
#include "system.h"
@@
-44,7
+44,7
@@
void list_free(list_t *list)
list_node_t *list_alloc_node(void)
{
list_node_t *list_alloc_node(void)
{
- return
(list_node_t *)
xmalloc_and_zero(sizeof(list_node_t));
+ return xmalloc_and_zero(sizeof(list_node_t));
}
void list_free_node(list_t *list, list_node_t *node)
}
void list_free_node(list_t *list, list_node_t *node)