]> git.sur5r.net Git - i3/i3/blobdiff - i3bar/include/util.h
Change the indention-style
[i3/i3] / i3bar / include / util.h
index a3fe76d90a655188a411c0cdd6a070203d32a368..08bdc3356880a658bc73469a2f4ac8cb241a42a4 100644 (file)
@@ -5,30 +5,30 @@
 
 /* Securely free p */
 #define FREE(p) do { \
-       if (p != NULL) { \
-               free(p); \
-               p = NULL; \
-       } \
+    if (p != NULL) { \
+        free(p); \
+        p = NULL; \
+    } \
 } while (0)
 
 /* Securely fee single-linked list */
 #define FREE_SLIST(l, type) do { \
-       type *walk = SLIST_FIRST(l); \
-       while (!SLIST_EMPTY(l)) { \
-               SLIST_REMOVE_HEAD(l, slist); \
-               FREE(walk); \
-               walk = SLIST_FIRST(l); \
-       } \
+    type *walk = SLIST_FIRST(l); \
+    while (!SLIST_EMPTY(l)) { \
+        SLIST_REMOVE_HEAD(l, slist); \
+        FREE(walk); \
+        walk = SLIST_FIRST(l); \
+    } \
 } while (0)
 
 #endif
 
 /* Securely fee tail-queues */
 #define FREE_TAILQ(l, type) do { \
-       type *walk = TAILQ_FIRST(l); \
-       while (!TAILQ_EMPTY(l)) { \
-               TAILQ_REMOVE(l, TAILQ_FIRST(l), tailq); \
-               FREE(walk); \
-               walk = TAILQ_FIRST(l); \
-       } \
+    type *walk = TAILQ_FIRST(l); \
+    while (!TAILQ_EMPTY(l)) { \
+        TAILQ_REMOVE(l, TAILQ_FIRST(l), tailq); \
+        FREE(walk); \
+        walk = TAILQ_FIRST(l); \
+    } \
 } while (0)