From 2838eeaca6a2d1158f798e835be80f086692f7fd Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 2 Jan 2017 21:36:32 +0100 Subject: [PATCH] ndb_cassandra: removed unused internal libs from makefile --- src/modules/ndb_cassandra/Makefile | 5 ----- src/modules/ndb_cassandra/ndb_cassandra.c | 21 ++++----------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/src/modules/ndb_cassandra/Makefile b/src/modules/ndb_cassandra/Makefile index cdeb0aecbc1..c5062434774 100644 --- a/src/modules/ndb_cassandra/Makefile +++ b/src/modules/ndb_cassandra/Makefile @@ -15,14 +15,9 @@ LIB_DIR = /usr/local/lib DEFS += -I${THRIFT_DIR} -DKAMAILIO_MOD_INTERFACE LIBS += -L${LIB_DIR} thrift_wrapper.o cassandra_constants.o cassandra_types.o Cassandra.o -lthrift -SERLIBPATH=../../lib - CXXFLAGS=$(CFLAGS:-Wno-deprecated option=) CXXFLAGS+=-Wno-write-strings -Wno-deprecated -Wno-unused-function -Wno-sign-compare -Wno-strict-aliasing -SER_LIBS=$(SERLIBPATH)/srdb2/srdb2 $(SERLIBPATH)/srdb1/srdb1 -SER_LIBS+=$(SERLIBPATH)/kmi/kmi - include ../../Makefile.modules cassandra_constants.o: cassandra_constants.cpp cassandra_constants.h diff --git a/src/modules/ndb_cassandra/ndb_cassandra.c b/src/modules/ndb_cassandra/ndb_cassandra.c index f91e4be961b..4d2bd40105f 100644 --- a/src/modules/ndb_cassandra/ndb_cassandra.c +++ b/src/modules/ndb_cassandra/ndb_cassandra.c @@ -19,13 +19,10 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * - * History: - * ------- - * 2013-11: Initial version luismartingil */ /*! \file * \brief SIP-router indigital :: Module core @@ -38,7 +35,6 @@ #include "../../core/sr_module.h" #include "../../core/mod_fix.h" -#include "../../lib/kmi/mi.h" //register_my_mod function #include "../../core/lvalue.h" #include @@ -87,10 +83,6 @@ static param_export_t params[] = { {0, 0, 0} }; -static mi_export_t mi_cmds[] = { - { 0, 0, 0, 0, 0} -}; - /* Module interface */ struct module_exports exports = { "ndb_cassandra", @@ -98,7 +90,7 @@ struct module_exports exports = { cmds, /* Exported functions */ params, /* Exported parameters */ 0, /* exported statistics */ - mi_cmds, /* exported MI functions */ + 0, /* exported MI functions */ 0, /* exported pseudo-variables */ 0, /* extra processes */ mod_init, /* module initialization function */ @@ -109,16 +101,11 @@ struct module_exports exports = { /* Module initialization function */ static int mod_init(void) { - if(register_mi_mod(exports.name, mi_cmds)!=0) - { - LM_ERR("failed to register MI commands\n"); - return -1; - } return 0; } /* Child initialization function */ -static int child_init(int rank) { +static int child_init(int rank) { int rtn = 0; return(rtn); }