summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-26 21:37:13 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-26 21:37:13 +0000
commit4ca857e0e922d0afeb7896ff62e9f47c0c36c535 (patch)
tree03a930475b6ada864aa9d2d72378b66f9a9fbdf0 /session.c
parent621dabd44e36c4bfdcd56e9e9730a9e10677e2bd (diff)
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to
the rest to reduce lint output.
Diffstat (limited to 'session.c')
-rw-r--r--session.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/session.c b/session.c
index db2eb779..116969be 100644
--- a/session.c
+++ b/session.c
@@ -319,7 +319,7 @@ session_next_activity(struct session *s, struct winlink *wl)
break;
if (session_alert_has(s, wl, WINDOW_CONTENT))
break;
- wl = winlink_next(&s->windows, wl);
+ wl = winlink_next(wl);
}
return (wl);
}
@@ -333,7 +333,7 @@ session_next(struct session *s, int activity)
if (s->curw == NULL)
return (-1);
- wl = winlink_next(&s->windows, s->curw);
+ wl = winlink_next(s->curw);
if (activity)
wl = session_next_activity(s, wl);
if (wl == NULL) {
@@ -360,7 +360,7 @@ session_previous_activity(struct session *s, struct winlink *wl)
break;
if (session_alert_has(s, wl, WINDOW_CONTENT))
break;
- wl = winlink_previous(&s->windows, wl);
+ wl = winlink_previous(wl);
}
return (wl);
}
@@ -374,7 +374,7 @@ session_previous(struct session *s, int activity)
if (s->curw == NULL)
return (-1);
- wl = winlink_previous(&s->windows, s->curw);
+ wl = winlink_previous(s->curw);
if (activity)
wl = session_previous_activity(s, wl);
if (wl == NULL) {