X-Git-Url: https://unix4lyfe.org/gitweb/darkstat-debian/blobdiff_plain/85d7d6e7b81dff84df8ddc87815ce77b8d82bc07..3c6b3682c70be84db86e70c191016913a9836c31:/ncache.c diff --git a/ncache.c b/ncache.c index 96e052f..1d23d1c 100644 --- a/ncache.c +++ b/ncache.c @@ -1,5 +1,5 @@ /* darkstat 3 - * copyright (c) 2001-2011 Emil Mikulic. + * copyright (c) 2001-2014 Emil Mikulic. * * ncache.c: cache of protocol and service names. * @@ -33,7 +33,7 @@ rec_cmp(struct name_rec *a, struct name_rec *b) } RB_HEAD(nc_tree, name_rec); -RB_GENERATE(nc_tree, name_rec, ptree, rec_cmp) +RB_GENERATE_STATIC(nc_tree, name_rec, ptree, rec_cmp) static struct nc_tree t_proto = RB_INITIALIZER(&name_rec),