[sr-dev] git:5.4:9de2eb8c: core: typedef for str_list struct

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


Module: kamailio
Branch: 5.4
Commit: 9de2eb8c4ef9d815be062d4f2c81db93129b520f
URL: https://github.com/kamailio/kamailio/commit/9de2eb8c4ef9d815be062d4f2c81db93129b520f

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

core: typedef for str_list struct

(cherry picked from commit e1dc6dd6d9b206168f6da2929560ca6a64e1b41e)

---

Modified: src/core/str_list.h

---

Diff:  https://github.com/kamailio/kamailio/commit/9de2eb8c4ef9d815be062d4f2c81db93129b520f.diff
Patch: https://github.com/kamailio/kamailio/commit/9de2eb8c4ef9d815be062d4f2c81db93129b520f.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