瀏覽代碼

Forgot to add argument for next field to LL_APPEND_ELEM2

Thilo Schulz 9 年之前
父節點
當前提交
414f785879
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/utlist.h

+ 1 - 1
src/utlist.h

@@ -506,7 +506,7 @@ do {
 #define LL_PREPEND_ELEM(head, el, add)                                                         \
 #define LL_PREPEND_ELEM(head, el, add)                                                         \
     LL_PREPEND_ELEM2(head, el, add, next)
     LL_PREPEND_ELEM2(head, el, add, next)
 
 
-#define LL_APPEND_ELEM2(head, el, add)                                                         \
+#define LL_APPEND_ELEM2(head, el, add, next)                                                   \
 do {                                                                                           \
 do {                                                                                           \
  if((el)) {                                                                                    \
  if((el)) {                                                                                    \
   assert(head != NULL);                                                                        \
   assert(head != NULL);                                                                        \