include "logger.h" and errno.h from asterisk.h - usage shows that they
[asterisk/asterisk.git] / res / res_smdi.c
index 01a6404..376ccc0 100644 (file)
@@ -26,9 +26,6 @@
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
 #include <termios.h>
 #include <sys/time.h>
 #include <time.h>
@@ -41,7 +38,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/config.h"
 #include "asterisk/astobj.h"
 #include "asterisk/io.h"
-#include "asterisk/logger.h"
 #include "asterisk/options.h"
 
 /* Message expiry time in milliseconds */
@@ -712,10 +708,10 @@ static int load_module(void)
        if (res < 0) {
                return res;
        } else if (res == 1) {
-               ast_log(LOG_WARNING, "No SMDI interfaces are available to listen on, not starting SDMI listener.\n");
-               return AST_MODULE_LOAD_DECLINE;;
+               ast_log(LOG_NOTICE, "No SMDI interfaces are available to listen on, not starting SMDI listener.\n");
+               return AST_MODULE_LOAD_DECLINE;
        } else
-               return 0;
+               return AST_MODULE_LOAD_SUCCESS;
 }
 
 static int unload_module(void)