core: fix two more 'no real prototype' warnings, fix one wrong caller in timer mod
authorHenning Westerholt <henning.westerholt@1und1.de>
Wed, 29 Jun 2011 20:30:39 +0000 (22:30 +0200)
committerHenning Westerholt <henning.westerholt@1und1.de>
Wed, 29 Jun 2011 20:30:39 +0000 (22:30 +0200)
modules_s/timer/timer.c
pt.h
timer.c
timer.h

index 1d34001..b470a85 100644 (file)
@@ -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 (file)
--- 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 (file)
--- 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 (file)
--- 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 */