From c12e0b0708ee1aa16608eff9d0ad3f0628cbac0f Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Sat, 28 Nov 2009 14:50:37 +0000 Subject: Sync OpenBSD patchset 567: Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output. --- session.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'session.c') 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 @@ -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) { -- cgit