aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'window.c')
-rw-r--r--window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/window.c b/window.c
index 9d2f3975..24d74fd2 100644
--- a/window.c
+++ b/window.c
@@ -174,7 +174,7 @@ winlink_stack_push(struct winlink_stack *stack, struct winlink *wl)
return;
winlink_stack_remove(stack, wl);
- SLIST_INSERT_HEAD(stack, wl, sentry);
+ TAILQ_INSERT_HEAD(stack, wl, sentry);
}
void
@@ -184,10 +184,10 @@ winlink_stack_remove(struct winlink_stack *stack, struct winlink *wl)
if (wl == NULL)
return;
-
- SLIST_FOREACH(wl2, stack, sentry) {
+
+ TAILQ_FOREACH(wl2, stack, sentry) {
if (wl2 == wl) {
- SLIST_REMOVE(stack, wl, winlink, sentry);
+ TAILQ_REMOVE(stack, wl, sentry);
return;
}
}