Module: kamailio
Branch: master
Commit: dbae2561720c97200d8e58e1e6c408a943e3c07b
URL:
https://github.com/kamailio/kamailio/commit/dbae2561720c97200d8e58e1e6c408a…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2018-05-15T20:18:02+02:00
db_perlvdb: fix compilation warning
db_perlvdb.c: In function
'db_perlvdb_bind_api':
db_perlvdb.c:98:24: warning: assignment from incompatible pointer type
[-Wincompatible-pointer-types]
dbb->replace = perlvdb_db_replace;
^
---
Modified: src/modules/db_perlvdb/perlvdbfunc.c
Modified: src/modules/db_perlvdb/perlvdbfunc.h
---
Diff:
https://github.com/kamailio/kamailio/commit/dbae2561720c97200d8e58e1e6c408a…
Patch:
https://github.com/kamailio/kamailio/commit/dbae2561720c97200d8e58e1e6c408a…
---
diff --git a/src/modules/db_perlvdb/perlvdbfunc.c b/src/modules/db_perlvdb/perlvdbfunc.c
index c6d6513616..e27d83c254 100644
--- a/src/modules/db_perlvdb/perlvdbfunc.c
+++ b/src/modules/db_perlvdb/perlvdbfunc.c
@@ -202,7 +202,8 @@ int perlvdb_db_insert(const db1_con_t* h, const db_key_t* k, const
db_val_t* v,
/*
* Just like insert, but replace the row if it exists
*/
-int perlvdb_db_replace(const db1_con_t* h, const db_key_t* k, const db_val_t* v, const
int n) {
+int perlvdb_db_replace(const db1_con_t* h, const db_key_t* k, const db_val_t* v,
+ const int n, const int un, const int m) {
return perlvdb_db_insertreplace(h, k, v, n, PERL_VDB_REPLACEMETHOD);
}
diff --git a/src/modules/db_perlvdb/perlvdbfunc.h b/src/modules/db_perlvdb/perlvdbfunc.h
index 33f392b755..0db42a28ee 100644
--- a/src/modules/db_perlvdb/perlvdbfunc.h
+++ b/src/modules/db_perlvdb/perlvdbfunc.h
@@ -48,7 +48,8 @@ void perlvdb_db_close(db1_con_t* h);
int perlvdb_use_table(db1_con_t* h, const str* t);
int perlvdb_db_insert(const db1_con_t* h, const db_key_t* k, const db_val_t* v, const int
n);
-int perlvdb_db_replace(const db1_con_t* h, const db_key_t* k, const db_val_t* v, const
int n);
+int perlvdb_db_replace(const db1_con_t* h, const db_key_t* k, const db_val_t* v,
+ const int n, const int un, const int m);
int perlvdb_db_delete(const db1_con_t* h, const db_key_t* k, const db_op_t* o,
const db_val_t* v, const int n);
int perlvdb_db_update(const db1_con_t* h, const db_key_t* k, const db_op_t* o,