浏览代码

core: typedef for str_list struct

Daniel-Constantin Mierla 4 年之前
父节点
当前提交
e1dc6dd6d9
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/core/str_list.h

+ 4 - 4
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