diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-08-20 18:17:15 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-08-21 19:45:08 +0000 |
commit | 3f838b717e831b99966fc4277f963b6c57340f6d (patch) | |
tree | c1a2ef11d5c54d439cc4ae6d0d98b1cd63446fbf /src/timer.c | |
parent | 07cf861e25d2f2359e55ec803256c2211eda0a12 (diff) |
timer: Fix compiler warning about timeval
timer.c:27:23: warning: tentative definition of variable with internal linkage has incomplete
non-array type 'struct timeval' [-Wtentative-definition-incomplete-type]
static struct timeval nearest;
^
timer.c:27:15: note: forward declaration of 'struct timeval'
static struct timeval nearest;
Diffstat (limited to 'src/timer.c')
-rw-r--r-- | src/timer.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/timer.c b/src/timer.c index c8376c8a..21b7015e 100644 --- a/src/timer.c +++ b/src/timer.c @@ -23,9 +23,6 @@ * */ -/* These store the amount of time that we wait until next timer expires. */ -static struct timeval nearest; -static struct timeval *nearest_p; /*! \addtogroup timer * @{ @@ -41,6 +38,10 @@ static struct timeval *nearest_p; #include <osmocom/core/timer_compat.h> #include <osmocom/core/linuxlist.h> +/* These store the amount of time that we wait until next timer expires. */ +static struct timeval nearest; +static struct timeval *nearest_p; + static struct rb_root timer_root = RB_ROOT; static void __add_timer(struct osmo_timer_list *timer) |