[sr-dev] git:master: tsilo: fix clang warnings on inline prototypes in header files

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 2 17:35:42 CEST 2014


Module: sip-router
Branch: master
Commit: bf8c98fc71cba974a2b98c36e2c9f6966768d529
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bf8c98fc71cba974a2b98c36e2c9f6966768d529

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Thu Oct  2 17:34:41 2014 +0200

tsilo: fix clang warnings on inline prototypes in header files

---

 modules/tsilo/ts_hash.c |    4 ++--
 modules/tsilo/ts_hash.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/tsilo/ts_hash.c b/modules/tsilo/ts_hash.c
index f577c5e..089f425 100644
--- a/modules/tsilo/ts_hash.c
+++ b/modules/tsilo/ts_hash.c
@@ -44,7 +44,7 @@ struct ts_table *t_table = 0;
  * \brief Destroy a urecord and free memory
  * \param tma destroyed urecord
  */
-inline void free_ts_urecord(struct ts_urecord *urecord)
+void free_ts_urecord(struct ts_urecord *urecord)
 {
 	LM_DBG("destroying urecord %p\n", urecord);
 	ts_transaction_t* ptr;
@@ -389,7 +389,7 @@ ts_transaction_t* clone_ts_transaction(ts_transaction_t* ts)
  * \brief remove a transaction from the urecord transactions list
  * \param tma unlinked transaction
  */
-inline void remove_ts_transaction(ts_transaction_t* ts_t)
+void remove_ts_transaction(ts_transaction_t* ts_t)
 {
 	if (ts_t->next)
 		ts_t->next->prev = ts_t->prev;
diff --git a/modules/tsilo/ts_hash.h b/modules/tsilo/ts_hash.h
index 060b38e..b895c26 100644
--- a/modules/tsilo/ts_hash.h
+++ b/modules/tsilo/ts_hash.h
@@ -173,7 +173,7 @@ ts_transaction_t* clone_ts_transaction(ts_transaction_t* ts);
  * \brief remove a transaction from the urecord transactions list
  * \param tma unlinked transaction
  */
-inline void remove_ts_transaction(ts_transaction_t* ts_t);
+void remove_ts_transaction(ts_transaction_t* ts_t);
 
-inline void free_ts_transaction(void *ts_t);
+void free_ts_transaction(void *ts_t);
 #endif




More information about the sr-dev mailing list