counters: minor code cleanup

pull/14398/head
Victor Julien 11 months ago
parent c27d0b4192
commit 13d2fa6092

@ -102,7 +102,7 @@ bool stats_stream_events = false;
static int StatsOutput(ThreadVars *tv); static int StatsOutput(ThreadVars *tv);
static int StatsThreadRegister(const char *thread_name, StatsPublicThreadContext *); static int StatsThreadRegister(const char *thread_name, StatsPublicThreadContext *);
void StatsReleaseCounters(StatsCounter *head); static void StatsReleaseCounters(StatsCounter *head);
static int StatsUpdateCounterArray(StatsPrivateThreadContext *pca, StatsPublicThreadContext *pctx); static int StatsUpdateCounterArray(StatsPrivateThreadContext *pca, StatsPublicThreadContext *pctx);
/** stats table is filled each interval and passed to the /** stats table is filled each interval and passed to the
@ -1324,7 +1324,7 @@ void StatsReleaseResources(void)
* \param head Pointer to the head of the list of perf counters that have to * \param head Pointer to the head of the list of perf counters that have to
* be freed * be freed
*/ */
void StatsReleaseCounters(StatsCounter *head) static void StatsReleaseCounters(StatsCounter *head)
{ {
StatsCounter *pc = NULL; StatsCounter *pc = NULL;

Loading…
Cancel
Save