-/* $OpenBSD: cmd-list-keys.c,v 1.63 2021/04/13 16:00:47 nicm Exp $ */
+/* $OpenBSD: cmd-list-keys.c,v 1.64 2021/08/20 17:50:42 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
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);
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);
-/* $OpenBSD: format.c,v 1.291 2021/08/12 19:47:05 nicm Exp $ */
+/* $OpenBSD: format.c,v 1.292 2021/08/20 17:50:42 nicm Exp $ */
/*
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
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 '=':
value = xstrdup("");
else
xasprintf(&value, "%c", c);
- free (new);
+ free(new);
goto done;
}
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);
}
-/* $OpenBSD: input-keys.c,v 1.85 2021/06/10 07:52:07 nicm Exp $ */
+/* $OpenBSD: input-keys.c,v 1.86 2021/08/20 17:50:42 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
/* 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 };
-/* $OpenBSD: mode-tree.c,v 1.54 2021/06/10 07:50:03 nicm Exp $ */
+/* $OpenBSD: mode-tree.c,v 1.55 2021/08/20 17:50:42 nicm Exp $ */
/*
* Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com>
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);
-/* $OpenBSD: names.c,v 1.44 2021/03/02 11:00:38 nicm Exp $ */
+/* $OpenBSD: names.c,v 1.45 2021/08/20 17:50:42 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
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;
-/* $OpenBSD: screen.c,v 1.73 2021/06/10 07:43:44 nicm Exp $ */
+/* $OpenBSD: screen.c,v 1.74 2021/08/20 17:50:42 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
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);
}
-/* $OpenBSD: server-client.c,v 1.380 2021/08/13 18:54:54 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.381 2021/08/20 17:50:42 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
uint64_t flag;
int not;
- s = copy = xstrdup (flags);
+ s = copy = xstrdup(flags);
while ((next = strsep(&s, ",")) != NULL) {
not = (*next == '!');
if (not)
-/* $OpenBSD: status.c,v 1.226 2021/08/12 20:09:34 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.227 2021/08/20 17:50:42 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
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
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
-/* $OpenBSD: window-copy.c,v 1.326 2021/08/11 20:35:46 nicm Exp $ */
+/* $OpenBSD: window-copy.c,v 1.327 2021/08/20 17:50:42 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
data->timeout = 0;
- log_debug ("%s: %s", __func__, argument);
+ log_debug("%s: %s", __func__, argument);
prefix = *argument++;
if (data->searchx == -1 || data->searchy == -1) {
data->timeout = 0;
- log_debug ("%s: %s", __func__, argument);
+ log_debug("%s: %s", __func__, argument);
prefix = *argument++;
if (data->searchx == -1 || data->searchy == -1) {
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;
}
}