timer: use (void) for functions that take no arguments
authorHarald Welte <laforge@gnumonks.org>
Sat, 16 Jul 2011 08:15:16 +0000 (10:15 +0200)
committerHarald Welte <laforge@gnumonks.org>
Sat, 16 Jul 2011 10:03:46 +0000 (12:03 +0200)
This has been detected by http://smatch.sourceforge.net/

include/osmocom/core/timer.h
src/timer.c

index db2ecbf..6c2e8c5 100644 (file)
@@ -64,9 +64,9 @@ int osmo_timer_pending(struct osmo_timer_list *timer);
 /**
  * internal timer list management
  */
-struct timeval *osmo_timers_nearest();
-void osmo_timers_prepare();
-int osmo_timers_update();
+struct timeval *osmo_timers_nearest(void);
+void osmo_timers_prepare(void);
+int osmo_timers_update(void);
 int osmo_timers_check(void);
 
 #endif
index ec75212..bd11a46 100644 (file)
@@ -80,7 +80,7 @@ int osmo_timer_pending(struct osmo_timer_list *timer)
  * If the nearest timer timed out return NULL and then we will
  * dispatch everything after the select
  */
-struct timeval *osmo_timers_nearest()
+struct timeval *osmo_timers_nearest(void)
 {
        struct timeval current_time;
 
@@ -107,7 +107,7 @@ struct timeval *osmo_timers_nearest()
 /*
  * Find the nearest time and update s_nearest_time
  */
-void osmo_timers_prepare()
+void osmo_timers_prepare(void)
 {
        struct osmo_timer_list *timer, *nearest_timer = NULL;
        llist_for_each_entry(timer, &timer_list, entry) {
@@ -126,7 +126,7 @@ void osmo_timers_prepare()
 /*
  * fire all timers... and remove them
  */
-int osmo_timers_update()
+int osmo_timers_update(void)
 {
        struct timeval current_time;
        struct osmo_timer_list *timer, *tmp;