Browse code

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)

Daniel-Constantin Mierla authored on 22/04/2014 08:19:02
Showing 1 changed files
... ...
@@ -37,7 +37,9 @@
37 37
 MODULE_VERSION
38 38
 
39 39
 static int mod_init(void);
40
+#ifdef USE_SCTP
40 41
 static int sctp_mod_pre_init(void);
42
+#endif
41 43
 
42 44
 
43 45
 static cmd_export_t cmds[]={
... ...
@@ -122,6 +124,7 @@ static int mod_init(void)
122 124
 #endif /* USE_SCTP */
123 125
 }
124 126
 
127
+#ifdef USE_SCTP
125 128
 static int sctp_mod_pre_init(void)
126 129
 {
127 130
 	sctp_srapi_t api;
... ...
@@ -143,3 +146,4 @@ static int sctp_mod_pre_init(void)
143 146
 	}
144 147
 	return 0;
145 148
 }
149
+#endif