Module: sip-router
Branch: master
Commit: 4cb7abe093ce0c56a4661377f9792fc417f83786
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4cb7abeā¦
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Apr 11 16:11:05 2014 +0200
srdb1: get rid of llvm warnings related to extern inline definitions
---
lib/srdb1/db_row.c | 4 ++--
lib/srdb1/db_row.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/srdb1/db_row.c b/lib/srdb1/db_row.c
index f832411..46cb893 100644
--- a/lib/srdb1/db_row.c
+++ b/lib/srdb1/db_row.c
@@ -39,7 +39,7 @@
/*
* Release memory used by row
*/
-inline int db_free_row(db_row_t* _r)
+int db_free_row(db_row_t* _r)
{
int col;
db_val_t* _val;
@@ -108,7 +108,7 @@ inline int db_free_row(db_row_t* _r)
* \param _row filled row
* \return zero on success, negative on errors
*/
-inline int db_allocate_row(const db1_res_t* _res, db_row_t* _row)
+int db_allocate_row(const db1_res_t* _res, db_row_t* _row)
{
int len = sizeof(db_val_t) * RES_COL_N(_res);
ROW_VALUES(_row) = (db_val_t*)pkg_malloc(len);
diff --git a/lib/srdb1/db_row.h b/lib/srdb1/db_row.h
index 6bee889..f41ad32 100644
--- a/lib/srdb1/db_row.h
+++ b/lib/srdb1/db_row.h
@@ -62,7 +62,7 @@ typedef struct db_row {
* \param _r row that should be released
* \return zero on success, negative on error
*/
-extern inline int db_free_row(db_row_t* _r);
+int db_free_row(db_row_t* _r);
/**
@@ -71,6 +71,6 @@ extern inline int db_free_row(db_row_t* _r);
* \param _row filled row
* \return zero on success, negative on errors
*/
-extern inline int db_allocate_row(const db1_res_t* _res, db_row_t* _row);
+int db_allocate_row(const db1_res_t* _res, db_row_t* _row);
#endif /* DB1_ROW_H */