commit | 026a6c33895bd13a8561b6f933b67abd005bccee | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@netfilter.org> | Thu Dec 24 10:04:09 2009 +0100 |
committer | Harald Welte <laforge@netfilter.org> | Thu Dec 24 10:04:09 2009 +0100 |
tree | 4a738174d2ad561109c92da66b6e13921b6cf817 | |
parent | 30d2ebddd6eb1fd62deff137aa2c8eab55f2efc3 [diff] [blame] |
counter: create their own talloc context for better readability
diff --git a/openbsc/src/statistics.c b/openbsc/src/statistics.c index 9bd44f3..9452b16 100644 --- a/openbsc/src/statistics.c +++ b/openbsc/src/statistics.c
@@ -33,9 +33,11 @@ static LLIST_HEAD(counters); +void *tall_ctr_ctx; + struct counter *counter_alloc(const char *name) { - struct counter *ctr = talloc_zero(tall_bsc_ctx, struct counter); + struct counter *ctr = talloc_zero(tall_ctr_ctx, struct counter); if (!ctr) return NULL;