X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=lib%2Favl_tree.c;h=24f4a083fdc77a30c81a6c023b6813c303046cc9;hp=be35b969f586d0fa3c88c0d2dea0e50abc5f84e0;hb=6c5f3d8b74ffea1522a727ef189a5ba65a939e07;hpb=83263b74460656ba557fd9bb84dc27258549e9cd diff --git a/lib/avl_tree.c b/lib/avl_tree.c index be35b969..24f4a083 100644 --- a/lib/avl_tree.c +++ b/lib/avl_tree.c @@ -29,7 +29,7 @@ library for inclusion into tinc (http://tinc.nl.linux.org/) by Guus Sliepen . - $Id: avl_tree.c,v 1.1.2.17 2003/07/24 12:08:14 guus Exp $ + $Id: avl_tree.c,v 1.1.2.19 2003/08/28 21:05:09 guus Exp $ */ #include "system.h" @@ -52,7 +52,7 @@ #endif #ifndef AVL_DEPTH -static int lg(unsigned int u) __attribute__ ((const)); +static int lg(unsigned int u) __attribute__ ((__const__)); static int lg(unsigned int u) { @@ -280,7 +280,7 @@ void avl_free_tree(avl_tree_t *tree) avl_node_t *avl_alloc_node(void) { - return (avl_node_t *)xmalloc_and_zero(sizeof(avl_node_t)); + return xmalloc_and_zero(sizeof(avl_node_t)); } void avl_free_node(avl_tree_t *tree, avl_node_t *node)