Style spacing nits.

pull/1/head
nicm 2015-05-07 11:42:56 +00:00
parent 1282bb81fe
commit 8e9b6e0948
5 changed files with 9 additions and 9 deletions

2
cfg.c
View File

@ -121,7 +121,7 @@ cfg_add_cause(const char *fmt, ...)
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);

View File

@ -193,7 +193,7 @@ cmd_find_best_session_with_window(struct cmd_find_state *fs)
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)
@ -201,7 +201,7 @@ cmd_find_best_session_with_window(struct cmd_find_state *fs)
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:
@ -329,7 +329,7 @@ cmd_find_current_client(struct cmd_q *cmdq)
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) {
@ -739,7 +739,7 @@ cmd_find_get_pane_with_window(struct cmd_find_state *fs, const char *pane)
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;

View File

@ -236,7 +236,7 @@ key_bindings_init(void)
if (error != 0)
fatalx("bad default key");
cmdq_run(cmdq, cmdlist, NULL);
cmd_list_free (cmdlist);
cmd_list_free(cmdlist);
}
cmdq_free(cmdq);
}

View File

@ -168,12 +168,12 @@ style_update_new(struct options *oo, const char *name, const char *newname)
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)

View File

@ -302,7 +302,7 @@ window_create1(u_int sx, u_int sy)
w->references = 0;
w->id = next_window_id++;
RB_INSERT (windows, &windows, w);
RB_INSERT(windows, &windows, w);
return (w);
}