-/* $OpenBSD: cfg.c,v 1.37 2015/04/27 22:50:35 nicm Exp $ */
+/* $OpenBSD: cfg.c,v 1.38 2015/05/07 11:42:56 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
va_start(ap, fmt);
xvasprintf(&msg, fmt, ap);
- va_end (ap);
+ va_end(ap);
cfg_ncauses++;
cfg_causes = xreallocarray(cfg_causes, cfg_ncauses, sizeof *cfg_causes);
-/* $OpenBSD: cmd-find.c,v 1.6 2015/04/28 12:09:24 nicm Exp $ */
+/* $OpenBSD: cmd-find.c,v 1.7 2015/05/07 11:42:56 nicm Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@users.sourceforge.net>
RB_FOREACH(s, sessions, &sessions) {
if (!session_has(s, fs->w))
continue;
- slist = xreallocarray (slist, ssize + 1, sizeof *slist);
+ slist = xreallocarray(slist, ssize + 1, sizeof *slist);
slist[ssize++] = s;
}
if (ssize == 0)
fs->s = cmd_find_best_session(slist, ssize, fs->flags);
if (fs->s == NULL)
goto fail;
- free (slist);
+ free(slist);
return (cmd_find_best_winlink_with_window(fs));
fail:
TAILQ_FOREACH(c, &clients, entry) {
if (c->session != s)
continue;
- clist = xreallocarray (clist, csize + 1, sizeof *clist);
+ clist = xreallocarray(clist, csize + 1, sizeof *clist);
clist[csize++] = c;
}
if (csize != 0) {
void
cmd_find_clear_state(struct cmd_find_state *fs, struct cmd_q *cmdq, int flags)
{
- memset (fs, 0, sizeof *fs);
+ memset(fs, 0, sizeof *fs);
fs->cmdq = cmdq;
fs->flags = flags;
-/* $OpenBSD: key-bindings.c,v 1.47 2015/04/25 18:49:01 nicm Exp $ */
+/* $OpenBSD: key-bindings.c,v 1.48 2015/05/07 11:42:56 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
if (error != 0)
fatalx("bad default key");
cmdq_run(cmdq, cmdlist, NULL);
- cmd_list_free (cmdlist);
+ cmd_list_free(cmdlist);
}
cmdq_free(cmdq);
}
-/* $OpenBSD: style.c,v 1.6 2015/04/15 15:44:40 nicm Exp $ */
+/* $OpenBSD: style.c,v 1.7 2015/05/07 11:42:56 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
o = options_find1(oo, newname);
if (o == NULL)
- o = options_set_style (oo, newname, "default", 0);
+ o = options_set_style(oo, newname, "default", 0);
gc = &o->style;
o = options_find1(oo, name);
if (o == NULL)
- o = options_set_number (oo, name, 8);
+ o = options_set_number(oo, name, 8);
value = o->num;
if (strstr(name, "-bg") != NULL)
-/* $OpenBSD: window.c,v 1.128 2015/05/06 08:35:39 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.129 2015/05/07 11:42:56 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
w->references = 0;
w->id = next_window_id++;
- RB_INSERT (windows, &windows, w);
+ RB_INSERT(windows, &windows, w);
return (w);
}