Browse code

tls: set module name using MOD_NAME define

Daniel-Constantin Mierla authored on 02/08/2021 10:29:25
Showing 1 changed files
... ...
@@ -256,12 +256,15 @@ static param_export_t params[] = {
256 256
 	{0, 0, 0}
257 257
 };
258 258
 
259
+#ifndef MOD_NAME
260
+#define MOD_NAME "tls"
261
+#endif
259 262
 
260 263
 /*
261 264
  * Module interface
262 265
  */
263 266
 struct module_exports exports = {
264
-	"tls",           /* module name */
267
+	MOD_NAME,        /* module name */
265 268
 	DEFAULT_DLFLAGS, /* dlopen flags */
266 269
 	cmds,            /* exported functions */
267 270
 	params,          /* exported parameters */