stats: Functions with no arguments should specify(void)

... otherwise callers might pass arbitrary arguments without raising
a compiler error or warning.

Change-Id: Ia2de1d13df5f00dcc42493090734a635029d76b5
This commit is contained in:
Harald Welte 2022-05-08 09:57:04 +02:00
parent 7ac0451ae8
commit 1e1436ce75
2 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@ extern struct llist_head osmo_stats_reporter_list;
extern struct osmo_stats_config *osmo_stats_config;
void osmo_stats_init(void *ctx);
int osmo_stats_report();
int osmo_stats_report(void);
int osmo_stats_set_interval(int interval);

View File

@ -175,7 +175,7 @@ static int osmo_stats_timer_cb(struct osmo_fd *ofd, unsigned int what)
return 0;
}
static int start_timer()
static int start_timer(void)
{
int rc;
int interval = osmo_stats_config->interval;
@ -758,7 +758,7 @@ static int handle_counter(struct osmo_counter *counter, void *sctx_)
/*** main reporting function ***/
static void flush_all_reporters()
static void flush_all_reporters(void)
{
struct osmo_stats_reporter *srep;
@ -781,7 +781,7 @@ static void flush_all_reporters()
}
}
int osmo_stats_report()
int osmo_stats_report(void)
{
/* per group actions */
TRACE(LIBOSMOCORE_STATS_START());