From 76a9d9856272dc8210e1f2a2a832ef4455e2ca1e Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 21 Jul 2009 19:54:22 +0000 Subject: Make some functions which return unused values void (mostly found by lint) and tweak a redundant expression in window_pane_set_mode. --- window.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'window.c') diff --git a/window.c b/window.c index d7d16ed3..5af60da3 100644 --- a/window.c +++ b/window.c @@ -301,13 +301,11 @@ window_destroy(struct window *w) xfree(w); } -int +void window_resize(struct window *w, u_int sx, u_int sy) { w->sx = sx; w->sy = sy; - - return (0); } void @@ -532,13 +530,13 @@ window_pane_spawn(struct window_pane *wp, return (0); } -int +void window_pane_resize(struct window_pane *wp, u_int sx, u_int sy) { struct winsize ws; if (sx == wp->sx && sy == wp->sy) - return (-1); + return; wp->sx = sx; wp->sy = sy; @@ -552,7 +550,6 @@ window_pane_resize(struct window_pane *wp, u_int sx, u_int sy) if (wp->fd != -1 && ioctl(wp->fd, TIOCSWINSZ, &ws) == -1) fatal("ioctl failed"); - return (0); } int @@ -560,9 +557,8 @@ window_pane_set_mode(struct window_pane *wp, const struct window_mode *mode) { struct screen *s; - if (wp->mode != NULL || wp->mode == mode) + if (wp->mode != NULL) return (1); - wp->mode = mode; if ((s = wp->mode->init(wp)) != NULL) -- cgit