From: nicm Date: Thu, 9 Jan 2014 13:58:06 +0000 (+0000) Subject: Style and comment fixes from Tiago Cunha. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a8e0565abc6e6656d7e8b44e95584b49e14324a7;p=openbsd Style and comment fixes from Tiago Cunha. --- diff --git a/usr.bin/tmux/grid.c b/usr.bin/tmux/grid.c index de76090f3b6..fd856f4ce27 100644 --- a/usr.bin/tmux/grid.c +++ b/usr.bin/tmux/grid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grid.c,v 1.31 2013/10/10 12:01:14 nicm Exp $ */ +/* $OpenBSD: grid.c,v 1.32 2014/01/09 13:58:06 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -644,7 +644,7 @@ grid_string_cells(struct grid *gd, u_int px, u_int py, u_int nx, if (trim) { while (off > 0 && buf[off - 1] == ' ') off--; - } + } buf[off] = '\0'; return (buf); diff --git a/usr.bin/tmux/options.c b/usr.bin/tmux/options.c index 54476b44736..a37558717a3 100644 --- a/usr.bin/tmux/options.c +++ b/usr.bin/tmux/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.8 2012/07/10 11:53:01 nicm Exp $ */ +/* $OpenBSD: options.c,v 1.9 2014/01/09 13:58:06 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -26,7 +26,7 @@ /* * Option handling; each option has a name, type and value and is stored in - * a splay tree. + * a red-black tree. */ RB_GENERATE(options_tree, options_entry, entry, options_cmp); diff --git a/usr.bin/tmux/window-choose.c b/usr.bin/tmux/window-choose.c index f2e59dec34b..53f5edcf518 100644 --- a/usr.bin/tmux/window-choose.c +++ b/usr.bin/tmux/window-choose.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-choose.c,v 1.48 2013/10/10 11:58:52 nicm Exp $ */ +/* $OpenBSD: window-choose.c,v 1.49 2014/01/09 13:58:06 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -345,8 +345,7 @@ window_choose_collapse(struct window_pane *wp, struct session *s) * assign the actual result we want to render and copy the new one over * the top of it. */ - for (i = 0; i < ARRAY_LENGTH(&data->list); i++) - { + for (i = 0; i < ARRAY_LENGTH(&data->list); i++) { item = &ARRAY_ITEM(&data->list, i); wcd = item->wcd;