radix: fix li_radixtree_new prototype

personal/stbuehler/wip
Stefan Bühler 12 years ago
parent b8a0921265
commit 0047fe22fa
  1. 2
      include/lighttpd/radix.h
  2. 2
      src/common/radix.c
  3. 4
      src/modules/mod_access.c

@ -5,7 +5,7 @@
typedef struct liRadixTree liRadixTree;
LI_API liRadixTree* li_radixtree_new();
LI_API liRadixTree* li_radixtree_new(void);
LI_API void li_radixtree_free(liRadixTree *tree, GFunc free_func, gpointer free_userdata);
LI_API gpointer li_radixtree_insert(liRadixTree *tree, const void *key, guint32 bits, gpointer data); /* returns old data after overwrite */

@ -26,7 +26,7 @@ struct liRadixTree {
liRadixNode *zero;
};
liRadixTree* li_radixtree_new() {
liRadixTree* li_radixtree_new(void) {
liRadixTree *tree;
tree = g_slice_new0(liRadixTree);

@ -135,8 +135,8 @@ static liAction* access_check_create(liServer *srv, liWorker *wrk, liPlugin* p,
acd = g_slice_new0(access_check_data);
acd->p = p;
acd->ipv4 = li_radixtree_new(2);
acd->ipv6 = li_radixtree_new(2);
acd->ipv4 = li_radixtree_new();
acd->ipv6 = li_radixtree_new();
li_radixtree_insert(acd->ipv4, NULL, 0, GINT_TO_POINTER(ACCESS_DENY));
li_radixtree_insert(acd->ipv6, NULL, 0, GINT_TO_POINTER(ACCESS_DENY));

Loading…
Cancel
Save