From 65fb0fda9d8c3de42ad86283b076c5a96763ed96 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 22 Oct 2009 15:39:37 +0200 Subject: Forward declare methods to fix compiler warnings Put the used method in the header files or use extern in the case of a vty method used by token_auth --- openbsc/include/openbsc/timer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'openbsc/include/openbsc/timer.h') diff --git a/openbsc/include/openbsc/timer.h b/openbsc/include/openbsc/timer.h index ae67a5a1a..a1ad92cfc 100644 --- a/openbsc/include/openbsc/timer.h +++ b/openbsc/include/openbsc/timer.h @@ -67,5 +67,6 @@ int bsc_timer_pending(struct timer_list *timer); struct timeval *bsc_nearest_timer(); void bsc_prepare_timers(); int bsc_update_timers(); +int bsc_timer_check(void); #endif -- cgit v1.2.3 From 251aa918da9bea6fcf5ba916df8b616b130e8ada Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 27 Oct 2009 10:42:28 +0100 Subject: misc: Make bitfields unsigned int... There is no use to have a signed bit in bitfields.. --- openbsc/include/openbsc/timer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openbsc/include/openbsc/timer.h') diff --git a/openbsc/include/openbsc/timer.h b/openbsc/include/openbsc/timer.h index a1ad92cfc..fee888bfd 100644 --- a/openbsc/include/openbsc/timer.h +++ b/openbsc/include/openbsc/timer.h @@ -44,9 +44,9 @@ struct timer_list { struct llist_head entry; struct timeval timeout; - int active : 1; - int handled : 1; - int in_list : 1; + unsigned int active : 1; + unsigned int handled : 1; + unsigned int in_list : 1; void (*cb)(void*); void *data; -- cgit v1.2.3