Skip to content

Commit

Permalink
Remove stray spaces after function names.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Aug 20, 2021
1 parent 01b13de commit e463e86
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 17 deletions.
5 changes: 2 additions & 3 deletions cmd-list-keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item)

repeat = 0;
tablewidth = keywidth = 0;
table = key_bindings_first_table ();
table = key_bindings_first_table();
while (table != NULL) {
if (tablename != NULL && strcmp(table->name, tablename) != 0) {
table = key_bindings_next_table(table);
Expand Down Expand Up @@ -243,8 +243,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item)

tmpsize = 256;
tmp = xmalloc(tmpsize);

table = key_bindings_first_table ();
table = key_bindings_first_table();
while (table != NULL) {
if (tablename != NULL && strcmp(table->name, tablename) != 0) {
table = key_bindings_next_table(table);
Expand Down
7 changes: 3 additions & 4 deletions format.c
Original file line number Diff line number Diff line change
Expand Up @@ -4078,8 +4078,7 @@ format_replace(struct format_expand_state *es, const char *key, size_t keylen,
case 's':
if (fm->argc < 2)
break;
sub = xreallocarray (sub, nsub + 1,
sizeof *sub);
sub = xreallocarray(sub, nsub + 1, sizeof *sub);
sub[nsub++] = fm;
break;
case '=':
Expand Down Expand Up @@ -4188,7 +4187,7 @@ format_replace(struct format_expand_state *es, const char *key, size_t keylen,
value = xstrdup("");
else
xasprintf(&value, "%c", c);
free (new);
free(new);
goto done;
}

Expand Down Expand Up @@ -4752,7 +4751,7 @@ format_defaults(struct format_tree *ft, struct client *c, struct session *s,
if (wp != NULL)
format_defaults_pane(ft, wp);

pb = paste_get_top (NULL);
pb = paste_get_top(NULL);
if (pb != NULL)
format_defaults_paste_buffer(ft, pb);
}
Expand Down
2 changes: 1 addition & 1 deletion input-keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ input_key_cmp(struct input_key_entry *ike1, struct input_key_entry *ike2)

/* Look for key in tree. */
static struct input_key_entry *
input_key_get (key_code key)
input_key_get(key_code key)
{
struct input_key_entry entry = { .key = key };

Expand Down
2 changes: 1 addition & 1 deletion mode-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ mode_tree_menu_callback(__unused struct menu *menu, __unused u_int idx,
if (mti->itemdata != mtm->itemdata)
goto out;
mtd->current = mtm->line;
mtd->menucb (mtd->modedata, mtm->c, key);
mtd->menucb(mtd->modedata, mtm->c, key);

out:
mode_tree_remove_ref(mtd);
Expand Down
2 changes: 1 addition & 1 deletion names.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ parse_window_name(const char *in)
name = copy = xstrdup(in);
if (*name == '"')
name++;
name[strcspn (name, "\"")] = '\0';
name[strcspn(name, "\"")] = '\0';

if (strncmp(name, "exec ", (sizeof "exec ") - 1) == 0)
name = name + (sizeof "exec ") - 1;
Expand Down
2 changes: 1 addition & 1 deletion screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,6 @@ screen_mode_to_string(int mode)
strlcat(tmp, "CRLF,", sizeof tmp);
if (mode & MODE_KEXTENDED)
strlcat(tmp, "KEXTENDED,", sizeof tmp);
tmp[strlen (tmp) - 1] = '\0';
tmp[strlen(tmp) - 1] = '\0';
return (tmp);
}
2 changes: 1 addition & 1 deletion server-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2378,7 +2378,7 @@ server_client_set_flags(struct client *c, const char *flags)
uint64_t flag;
int not;

s = copy = xstrdup (flags);
s = copy = xstrdup(flags);
while ((next = strsep(&s, ",")) != NULL) {
not = (*next == '!');
if (not)
Expand Down
4 changes: 2 additions & 2 deletions status.c
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ status_prompt_key(struct client *c, key_code key)
break;
if (c->prompt_buffer[0].size == 0) {
prefix = '=';
free (c->prompt_buffer);
free(c->prompt_buffer);
c->prompt_buffer = utf8_fromcstr(c->prompt_last);
c->prompt_index = utf8_strlen(c->prompt_buffer);
} else
Expand All @@ -1424,7 +1424,7 @@ status_prompt_key(struct client *c, key_code key)
break;
if (c->prompt_buffer[0].size == 0) {
prefix = '=';
free (c->prompt_buffer);
free(c->prompt_buffer);
c->prompt_buffer = utf8_fromcstr(c->prompt_last);
c->prompt_index = utf8_strlen(c->prompt_buffer);
} else
Expand Down
6 changes: 3 additions & 3 deletions window-copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,7 @@ window_copy_cmd_search_backward_incremental(struct window_copy_cmd_state *cs)

data->timeout = 0;

log_debug ("%s: %s", __func__, argument);
log_debug("%s: %s", __func__, argument);

prefix = *argument++;
if (data->searchx == -1 || data->searchy == -1) {
Expand Down Expand Up @@ -2281,7 +2281,7 @@ window_copy_cmd_search_forward_incremental(struct window_copy_cmd_state *cs)

data->timeout = 0;

log_debug ("%s: %s", __func__, argument);
log_debug("%s: %s", __func__, argument);

prefix = *argument++;
if (data->searchx == -1 || data->searchy == -1) {
Expand Down Expand Up @@ -2859,7 +2859,7 @@ window_copy_command(struct window_mode_entry *wme, struct client *c,
args->argc - 1 > window_copy_cmd_table[i].maxargs)
break;
clear = window_copy_cmd_table[i].clear;
action = window_copy_cmd_table[i].f (&cs);
action = window_copy_cmd_table[i].f(&cs);
break;
}
}
Expand Down

0 comments on commit e463e86

Please sign in to comment.