]> git.ipfire.org Git - thirdparty/git.git/blobdiff - list.h
test-ref-store: remove force-create argument for create-reflog
[thirdparty/git.git] / list.h
diff --git a/list.h b/list.h
index eb601192f4ca9a6af126c82f4c2a24cb9145009d..362a4cd7f5f10f17f174086911dc30e60e07e6ec 100644 (file)
--- a/list.h
+++ b/list.h
@@ -46,7 +46,10 @@ struct list_head {
 #define INIT_LIST_HEAD(ptr) \
        (ptr)->next = (ptr)->prev = (ptr)
 
-#define LIST_HEAD_INIT(name) { &(name), &(name) }
+#define LIST_HEAD_INIT(name) { \
+       .next = &(name), \
+       .prev = &(name), \
+}
 
 /* Add new element at the head of the list. */
 static inline void list_add(struct list_head *newp, struct list_head *head)