diff options
author | 2015-12-08 00:51:17 +0000 | |
---|---|---|
committer | 2015-12-08 00:51:17 +0000 | |
commit | 002d9b4f8d29712a2c4c571acfa9338538e08c7b (patch) | |
tree | 5d9c3c5fa062e3d2cd627cef1945b5d76980cbfe | |
parent | Add root certificate for COMODO RSA Certification Authority, ok beck@ (diff) | |
download | wireguard-openbsd-002d9b4f8d29712a2c4c571acfa9338538e08c7b.tar.xz wireguard-openbsd-002d9b4f8d29712a2c4c571acfa9338538e08c7b.zip |
Use ^= instead of a verbose alternative. ok nicm@
-rw-r--r-- | usr.bin/tmux/cmd-switch-client.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/tmux/cmd-switch-client.c b/usr.bin/tmux/cmd-switch-client.c index c75c0c64c2e..4d11de8ab9e 100644 --- a/usr.bin/tmux/cmd-switch-client.c +++ b/usr.bin/tmux/cmd-switch-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-switch-client.c,v 1.33 2015/10/28 09:51:55 nicm Exp $ */ +/* $OpenBSD: cmd-switch-client.c,v 1.34 2015/12/08 00:51:17 mmcc Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -52,12 +52,8 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq) if ((c = cmd_find_client(cmdq, args_get(args, 'c'), 0)) == NULL) return (CMD_RETURN_ERROR); - if (args_has(args, 'r')) { - if (c->flags & CLIENT_READONLY) - c->flags &= ~CLIENT_READONLY; - else - c->flags |= CLIENT_READONLY; - } + if (args_has(args, 'r')) + c->flags ^= CLIENT_READONLY; tablename = args_get(args, 'T'); if (tablename != NULL) { |