summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-12-23 20:18:39 +0000
committernicm <nicm@openbsd.org>2010-12-23 20:18:39 +0000
commit6c0f147df90ff3f84331b0b55a08d3825119a58a (patch)
tree5d1b26c7d222b9b2f60e977e1f00306055061bac
parentThe exception vector page on m88k systems has always been the same page as (diff)
downloadwireguard-openbsd-6c0f147df90ff3f84331b0b55a08d3825119a58a.tar.xz
wireguard-openbsd-6c0f147df90ff3f84331b0b55a08d3825119a58a.zip
Style tweaks.
-rw-r--r--usr.bin/tmux/input.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index 5cf6755cbd3..cc3efcf6e2a 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.30 2010/12/06 22:51:02 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.31 2010/12/23 20:18:39 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -720,11 +720,11 @@ input_parse(struct window_pane *wp)
* Execute the handler, if any. Don't switch state if it
* returns non-zero.
*/
- if (itr->handler && itr->handler(ictx) != 0)
+ if (itr->handler != NULL && itr->handler(ictx) != 0)
continue;
/* And switch state, if necessary. */
- if (itr->state) {
+ if (itr->state != NULL) {
if (ictx->state->exit != NULL)
ictx->state->exit(ictx);
ictx->state = itr->state;
@@ -924,9 +924,9 @@ input_c0_dispatch(struct input_ctx *ictx)
int
input_esc_dispatch(struct input_ctx *ictx)
{
- struct screen_write_ctx *sctx = &ictx->ctx;
- struct screen *s = sctx->s;
- struct input_table_entry *entry;
+ struct screen_write_ctx *sctx = &ictx->ctx;
+ struct screen *s = sctx->s;
+ struct input_table_entry *entry;
if (ictx->flags & INPUT_DISCARD)
return (0);