Module: kamailio
Branch: master
Commit: f51aef13fafcf5892872c77e4fa52693db500bc2
URL:
https://github.com/kamailio/kamailio/commit/f51aef13fafcf5892872c77e4fa5269…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-01-02T22:28:05+01:00
db_berkeley: handle return code for rpc init function
---
Modified: src/modules/db_berkeley/km_db_berkeley.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f51aef13fafcf5892872c77e4fa5269…
Patch:
https://github.com/kamailio/kamailio/commit/f51aef13fafcf5892872c77e4fa5269…
---
diff --git a/src/modules/db_berkeley/km_db_berkeley.c
b/src/modules/db_berkeley/km_db_berkeley.c
index 4366017..7c2d1a7 100644
--- a/src/modules/db_berkeley/km_db_berkeley.c
+++ b/src/modules/db_berkeley/km_db_berkeley.c
@@ -64,7 +64,7 @@
/*MODULE_VERSION*/
int bdb_bind_api(db_func_t *dbb);
-static void db_berkeley_init_rpc(void);
+static int db_berkeley_init_rpc(void);
/*
* Exported functions
@@ -1292,7 +1292,7 @@ rpc_export_t db_berkeley_rpc[] = {
{0, 0, 0, 0}
};
-static void db_berkeley_init_rpc(void)
+static int db_berkeley_init_rpc(void)
{
if (rpc_register_array(db_berkeley_rpc)!=0) {
LM_ERR("failed to register RPC commands\n");