aboutsummaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-11-28 14:50:37 +0000
committerTiago Cunha <tcunha@gmx.com>2009-11-28 14:50:37 +0000
commitc12e0b0708ee1aa16608eff9d0ad3f0628cbac0f (patch)
tree3a99b02a67d6a0f3afcf40cc831ba5c74e0b4ffa /session.c
parentbbd9652d325013911896687236e1700d601fae6b (diff)
downloadrtmux-c12e0b0708ee1aa16608eff9d0ad3f0628cbac0f.tar.gz
rtmux-c12e0b0708ee1aa16608eff9d0ad3f0628cbac0f.tar.bz2
rtmux-c12e0b0708ee1aa16608eff9d0ad3f0628cbac0f.zip
Sync OpenBSD patchset 567:
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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/session.c b/session.c
index 5cdb1461..7d2f929f 100644
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
-/* $Id: session.c,v 1.71 2009-11-13 16:59:19 tcunha Exp $ */
+/* $Id: session.c,v 1.72 2009-11-28 14:50:37 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -318,7 +318,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);
}
@@ -332,7 +332,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) {
@@ -359,7 +359,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);
}
@@ -373,7 +373,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) {