Browse Source

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

Henning Westerholt 14 years ago
parent
commit
23bd471b22
4 changed files with 4 additions and 4 deletions
  1. 1 1
      modules_s/timer/timer.c
  2. 1 1
      pt.h
  3. 1 1
      timer.c
  4. 1 1
      timer.h

+ 1 - 1
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 */
         /* begin critical section */
 	if (a->disable_itself) {
 	if (a->disable_itself) {
 
 
-		timer_allow_del(a->link);
+		timer_allow_del();
 		timer_del(a->link);
 		timer_del(a->link);
 		timer_reinit(a->link);
 		timer_reinit(a->link);
 		a->disable_itself = 0;
 		a->disable_itself = 0;

+ 1 - 1
pt.h

@@ -62,7 +62,7 @@ extern int process_no;
 
 
 extern struct tcp_child* tcp_children;
 extern struct tcp_child* tcp_children;
 
 
-int init_pt();
+int init_pt(int proc_no);
 int get_max_procs();
 int get_max_procs();
 int register_procs(int no);
 int register_procs(int no);
 int get_max_open_fds();
 int get_max_open_fds();

+ 1 - 1
timer.c

@@ -815,7 +815,7 @@ return ret;
  *            context), all other calls will have no effect and will log a
  *            context), all other calls will have no effect and will log a
  *            bug message
  *            bug message
  */
  */
-void timer_allow_del()
+void timer_allow_del(void)
 {
 {
 	if (IS_IN_TIMER() ){
 	if (IS_IN_TIMER() ){
 			UNSET_RUNNING();
 			UNSET_RUNNING();

+ 1 - 1
timer.h

@@ -186,7 +186,7 @@ int timer_del_safe(struct timer_ln *tl);
 #define timer_del timer_del_safe
 #define timer_del timer_del_safe
 #endif
 #endif
 
 
-void timer_allow_del();
+void timer_allow_del(void);
 
 
 /* old timer compatibility functions & structure */
 /* old timer compatibility functions & structure */