summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-12-13 15:00:37 +0000
committernicm <nicm@openbsd.org>2015-12-13 15:00:37 +0000
commit765d031f78e67915a820eb4b50660584217e5c2b (patch)
tree47a71b7ed4362ec57f9821a850676c5e05b50f10 /usr.bin/tmux/cmd.c
parentInstead of every command resolving the target (-t or -s) itself, prepare (diff)
downloadwireguard-openbsd-765d031f78e67915a820eb4b50660584217e5c2b.tar.xz
wireguard-openbsd-765d031f78e67915a820eb4b50660584217e5c2b.zip
Move logging into cmd_find_target rather than each function.
Diffstat (limited to 'usr.bin/tmux/cmd.c')
-rw-r--r--usr.bin/tmux/cmd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd.c b/usr.bin/tmux/cmd.c
index 465053292a3..71db55c0b9f 100644
--- a/usr.bin/tmux/cmd.c
+++ b/usr.bin/tmux/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.108 2015/12/13 14:32:38 nicm Exp $ */
+/* $OpenBSD: cmd.c,v 1.109 2015/12/13 15:00:37 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -538,8 +538,8 @@ cmd_set_state_flag(struct cmd *cmd, struct cmd_q *cmdq, char c)
if (statef->wl == NULL)
return (-1);
break;
- case CMD_PANE_MARKED_S:
case CMD_PANE_MARKED_T:
+ case CMD_PANE_MARKED_S:
statef->wl = cmd_find_pane_marked(cmdq, flag, &statef->s,
&statef->wp);
if (statef->wl == NULL)
@@ -595,8 +595,7 @@ cmd_prepare_state(struct cmd *cmd, struct cmd_q *cmdq)
int error;
tmp = cmd_print(cmd);
- log_debug("preparing state for: %s (client %d)", tmp,
- cmdq->client != NULL ? cmdq->client->fd : -1);
+ log_debug("preparing state for: %s (client %p)", tmp, cmdq->client);
free(tmp);
/* Start with an empty state. */