summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2010-10-25 12:30:52 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2015-09-18 12:55:30 +0200
commit796113667060140701b4e4d48131230c317647c7 (patch)
tree536f93cd4eac21548f6785ce1266c15d6a5ab140
parentb182cc719baa9b6de31a21e919d85707eebb4bdb (diff)
downloadcanutils-796113667060140701b4e4d48131230c317647c7.tar.gz
cansequence: codingstyle cleanups
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--src/cansequence.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cansequence.c b/src/cansequence.c
index 62eb744..ff6ef97 100644
--- a/src/cansequence.c
+++ b/src/cansequence.c
@@ -30,7 +30,6 @@ extern int optind, opterr, optopt;
static int s = -1;
static bool running = true;
static bool infinite = true;
-static bool sequence_init = true;
static unsigned int drop_until_quit;
static unsigned int drop_count;
static bool use_poll = false;
@@ -90,6 +89,7 @@ static void do_receive()
};
struct cmsghdr *cmsg;
const int dropmonitor_on = 1;
+ bool sequence_init = true;
unsigned int seq_wrap = 0;
uint8_t sequence = 0;
ssize_t nbytes;
@@ -117,7 +117,7 @@ static void do_receive()
}
if (sequence_init) {
- sequence_init = 0;
+ sequence_init = false;
sequence = frame.data[0];
}