projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
No C99 initialisers, gcc 2.95.3 doesn't like it.
[tinc]
/
src
/
node.c
diff --git
a/src/node.c
b/src/node.c
index
5fb3d0d
..
b69c5b1
100644
(file)
--- a/
src/node.c
+++ b/
src/node.c
@@
-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: node.c,v 1.1.2.2
5 2003/07/29 10:50:1
5 guus Exp $
+ $Id: node.c,v 1.1.2.2
6 2003/07/30 11:50:4
5 guus Exp $
*/
#include "system.h"
*/
#include "system.h"
@@
-145,24
+145,24
@@
void node_del(node_t *n)
node_t *lookup_node(char *name)
{
node_t *lookup_node(char *name)
{
- node_t n = {
- .name = name,
- };
+ node_t n = {0};
cp();
cp();
+ n.name = name;
+
return avl_search(node_tree, &n);
}
node_t *lookup_node_udp(const sockaddr_t *sa)
{
return avl_search(node_tree, &n);
}
node_t *lookup_node_udp(const sockaddr_t *sa)
{
- node_t n = {
- .address = *sa,
- .name = NULL,
- };
+ node_t n = {0};
cp();
cp();
+ n.address = *sa;
+ n.name = NULL;
+
return avl_search(node_udp_tree, &n);
}
return avl_search(node_udp_tree, &n);
}