[sr-dev] git:master:e1dc6dd6: core: typedef for str_list struct

Daniel-Constantin Mierla miconda at gmail.com
Wed Mar 3 08:48:53 CET 2021


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-03-03T08:47:20+01:00

core: typedef for str_list struct

---

Modified: src/core/str_list.h

---

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

---

diff --git a/src/core/str_list.h b/src/core/str_list.h
index fe1e53410d..db3fa12887 100644
--- a/src/core/str_list.h
+++ b/src/core/str_list.h
@@ -20,7 +20,7 @@
  */
 
 /**
- * @file 
+ * @file
  * @brief Kamailio core :: Simple str type list and helper functions
  */
 
@@ -32,15 +32,15 @@
 /**
  * @brief Simple str type list
  */
-struct str_list {
+typedef struct str_list {
 	str s;
 	struct str_list *next;
-};
+} str_list_t;
 
 
 /**
  * @brief Add a new allocated list element to an existing list
- * 
+ *
  * Add a new allocated list element to an existing list, the allocation is done
  * from the private memory pool
  * @param s input character




More information about the sr-dev mailing list