-/* $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 <nicm@users.sourceforge.net>
if (trim) {
while (off > 0 && buf[off - 1] == ' ')
off--;
- }
+ }
buf[off] = '\0';
return (buf);
-/* $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 <nicm@users.sourceforge.net>
/*
* 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);
-/* $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 <nicm@users.sourceforge.net>
* 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;