diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-12-23 20:18:39 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-12-23 20:18:39 +0000 |
commit | 6fd2b5b87fd5cfe839223253c8f85af49599b886 (patch) | |
tree | d9afeff413256330cd1ae7b9d6e26ad48c402c90 | |
parent | acf13ce9784111ca1e42ffc8206e752668476859 (diff) | |
download | rtmux-6fd2b5b87fd5cfe839223253c8f85af49599b886.tar.gz rtmux-6fd2b5b87fd5cfe839223253c8f85af49599b886.tar.bz2 rtmux-6fd2b5b87fd5cfe839223253c8f85af49599b886.zip |
Style tweaks.
-rw-r--r-- | input.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |