-/* $OpenBSD: cfg.c,v 1.35 2015/04/25 18:47:01 nicm Exp $ */
+/* $OpenBSD: cfg.c,v 1.36 2015/04/25 18:49:01 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
#include "tmux.h"
-struct cmd_q *cfg_cmd_q;
-int cfg_finished;
-int cfg_references;
-char** cfg_causes;
-u_int cfg_ncauses;
-struct client *cfg_client;
+struct cmd_q *cfg_cmd_q;
+int cfg_finished;
+int cfg_references;
+char **cfg_causes;
+u_int cfg_ncauses;
+struct client *cfg_client;
int
load_cfg(const char *path, struct cmd_q *cmdq, char **cause)
}
void
-cfg_add_cause(const char* fmt, ...)
+cfg_add_cause(const char *fmt, ...)
{
- va_list ap;
- char* msg;
+ va_list ap;
+ char *msg;
va_start(ap, fmt);
xvasprintf(&msg, fmt, ap);
-/* $OpenBSD: key-bindings.c,v 1.46 2015/04/21 15:34:32 nicm Exp $ */
+/* $OpenBSD: key-bindings.c,v 1.47 2015/04/25 18:49:01 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
void
key_bindings_init(void)
{
- static const char* defaults[] = {
+ static const char *defaults[] = {
"bind C-b send-prefix",
"bind C-o rotate-window",
"bind C-z suspend-client",
};
u_int i;
struct cmd_list *cmdlist;
- char* cause;
+ char *cause;
int error;
struct cmd_q *cmdq;
-/* $OpenBSD: window.c,v 1.124 2015/04/25 18:33:59 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.125 2015/04/25 18:49:01 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
}
struct window *
-window_find_by_id_str(const char* s)
+window_find_by_id_str(const char *s)
{
const char *errstr;
u_int id;