[sr-dev] git:master: core: fix two more 'no real prototype' warnings, fix one wrong caller in timer mod

Henning Westerholt henning.westerholt at 1und1.de
Wed Jun 29 22:33:40 CEST 2011


Module: sip-router
Branch: master
Commit: 23bd471b227696a3b71e25403ee36eae338d85f1
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=23bd471b227696a3b71e25403ee36eae338d85f1

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Wed Jun 29 22:30:39 2011 +0200

core: fix two more 'no real prototype' warnings, fix one wrong caller in timer mod

---

 modules_s/timer/timer.c |    2 +-
 pt.h                    |    2 +-
 timer.c                 |    2 +-
 timer.h                 |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules_s/timer/timer.c b/modules_s/timer/timer.c
index 1d34001..b470a85 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 2d16aa1..d2af6ac 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 efba92d..2f23f0f 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 969ce5d..4adcc8e 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 */
 




More information about the sr-dev mailing list