Module: sip-router
Branch: 4.1
Commit: bf2c130744a0d43767bb0745defd6a06073957c0
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bf2c130…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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
(cherry picked from commit 68f511f4972b8ac294b7429aadb27b22f2dfd554)
---
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