Module: sip-router Branch: master Commit: 68f511f4972b8ac294b7429aadb27b22f2dfd554 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=68f511f4...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Tue Apr 22 10:19:02 2014 +0200
sctp: enclose pre-init static function in between ifdef USE_SCTP
- it is not used otherwise and some compilers can throw warnings - reported by Juha Heinanen
---
modules/sctp/sctp_mod.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/sctp/sctp_mod.c b/modules/sctp/sctp_mod.c index 1469e6d..9b33177 100644 --- a/modules/sctp/sctp_mod.c +++ b/modules/sctp/sctp_mod.c @@ -37,7 +37,9 @@ MODULE_VERSION
static int mod_init(void); +#ifdef USE_SCTP static int sctp_mod_pre_init(void); +#endif
static cmd_export_t cmds[]={ @@ -122,6 +124,7 @@ static int mod_init(void) #endif /* USE_SCTP */ }
+#ifdef USE_SCTP static int sctp_mod_pre_init(void) { sctp_srapi_t api; @@ -143,3 +146,4 @@ static int sctp_mod_pre_init(void) } return 0; } +#endif