[sr-dev] git:master:34301ea1: core: ut.h - add inline to static function to avoid warning from including files

Daniel-Constantin Mierla miconda at gmail.com
Tue Jan 26 11:54:58 CET 2021


Module: kamailio
Branch: master
Commit: 34301ea16812eccbb914ea14cafb0140ac9bba61
URL: https://github.com/kamailio/kamailio/commit/34301ea16812eccbb914ea14cafb0140ac9bba61

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-01-26T11:54:34+01:00

core: ut.h - add inline to static function to avoid warning from including files

- for shm_str_dup_block()

---

Modified: src/core/ut.h

---

Diff:  https://github.com/kamailio/kamailio/commit/34301ea16812eccbb914ea14cafb0140ac9bba61.diff
Patch: https://github.com/kamailio/kamailio/commit/34301ea16812eccbb914ea14cafb0140ac9bba61.patch

---

diff --git a/src/core/ut.h b/src/core/ut.h
index 99e12a4136..4ab08024a7 100644
--- a/src/core/ut.h
+++ b/src/core/ut.h
@@ -748,7 +748,7 @@ static inline int strz2sint(char* _s, int* _r)
 /**
  * duplicate str structure and content in a single shm block
  */
-static str* shm_str_dup_block(const str* src)
+static inline str* shm_str_dup_block(const str* src)
 {
 	str *dst;
 




More information about the sr-dev mailing list