From: Henning Westerholt Date: Wed, 29 Jun 2011 20:30:39 +0000 (+0200) Subject: core: fix two more 'no real prototype' warnings, fix one wrong caller in timer mod X-Git-Tag: 3.3.7~1196 X-Git-Url: http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=commitdiff_plain;h=23bd471b227696a3b71e25403ee36eae338d85f1 core: fix two more 'no real prototype' warnings, fix one wrong caller in timer mod --- diff --git a/modules_s/timer/timer.c b/modules_s/timer/timer.c index 1d34001a20..b470a8566c 100644 --- a/modules_s/timer/timer.c +++ b/modules_s/timer/timer.c @@ -204,7 +204,7 @@ static ticks_t timer_handler(ticks_t ticks, struct timer_ln* tl, void* data) { /* begin critical section */ if (a->disable_itself) { - timer_allow_del(a->link); + timer_allow_del(); timer_del(a->link); timer_reinit(a->link); a->disable_itself = 0; diff --git a/pt.h b/pt.h index 2d16aa1e33..d2af6ac2e3 100644 --- a/pt.h +++ b/pt.h @@ -62,7 +62,7 @@ extern int process_no; extern struct tcp_child* tcp_children; -int init_pt(); +int init_pt(int proc_no); int get_max_procs(); int register_procs(int no); int get_max_open_fds(); diff --git a/timer.c b/timer.c index efba92d379..2f23f0f4c1 100644 --- a/timer.c +++ b/timer.c @@ -815,7 +815,7 @@ return ret; * context), all other calls will have no effect and will log a * bug message */ -void timer_allow_del() +void timer_allow_del(void) { if (IS_IN_TIMER() ){ UNSET_RUNNING(); diff --git a/timer.h b/timer.h index 969ce5dc44..4adcc8edac 100644 --- a/timer.h +++ b/timer.h @@ -186,7 +186,7 @@ int timer_del_safe(struct timer_ln *tl); #define timer_del timer_del_safe #endif -void timer_allow_del(); +void timer_allow_del(void); /* old timer compatibility functions & structure */