diff options
author | Tiago Cunha <tcunha@gmx.com> | 2010-12-25 23:43:53 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2010-12-25 23:43:53 +0000 |
commit | 3585feca54dcd4b86426eb220507cb6c56ed045a (patch) | |
tree | 4d4d3ebf9b7b1c3134cca124c969662639992523 | |
parent | a373235106d22fdead116d478087d8f8f11c150d (diff) | |
download | rtmux-3585feca54dcd4b86426eb220507cb6c56ed045a.tar.gz rtmux-3585feca54dcd4b86426eb220507cb6c56ed045a.tar.bz2 rtmux-3585feca54dcd4b86426eb220507cb6c56ed045a.zip |
Sync OpenBSD patchset 807:
Style tweaks.
-rw-r--r-- | input.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: input.c,v 1.110 2010-12-06 22:52:21 nicm Exp $ */ +/* $Id: input.c,v 1.111 2010-12-25 23:43:53 tcunha 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); |