Module: sip-router
Branch: master
Commit: 80978ef1a337cfae6476c0025895970c932e4000
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=80978ef…
Author: Henning Westerholt <henning.westerholt(a)1und1.de>
Committer: Henning Westerholt <henning.westerholt(a)1und1.de>
Date: Tue Jul 5 00:20:35 2011 +0200
tm: proper definition for tm_init_timers, one small whitespace fix
---
modules/tm/timer.c | 4 ++--
modules/tm/timer.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/tm/timer.c b/modules/tm/timer.c
index 33b2621..349d6a8 100644
--- a/modules/tm/timer.c
+++ b/modules/tm/timer.c
@@ -179,7 +179,7 @@ struct msgid_var user_noninv_max_lifetime;
/**
* \brief fix timer values to ticks
*/
-int tm_init_timers()
+int tm_init_timers(void)
{
default_tm_cfg.fr_timeout=MS_TO_TICKS(default_tm_cfg.fr_timeout);
default_tm_cfg.fr_inv_timeout=MS_TO_TICKS(default_tm_cfg.fr_inv_timeout);
@@ -254,7 +254,7 @@ error:
*/
int timer_fixup(void *handle, str *gname, str *name, void **val)
{
- ticks_t t;
+ ticks_t t;
t = MS_TO_TICKS((unsigned int)(long)(*val));
/* fix 0 values to 1 tick (minimum possible wait time ) */
diff --git a/modules/tm/timer.h b/modules/tm/timer.h
index 95ea59a..e7847d3 100644
--- a/modules/tm/timer.h
+++ b/modules/tm/timer.h
@@ -152,7 +152,7 @@ extern struct msgid_var user_noninv_max_lifetime;
/**
* \brief fix timer values to ticks
*/
-extern int tm_init_timers();
+extern int tm_init_timers(void);
/**
* \brief Fixup function for the timer values