diff options
author | Bill Meier <wmeier@newsguy.com> | 2014-10-14 11:12:16 -0400 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2014-10-14 16:45:09 +0000 |
commit | 10b83e6931debe1f1f2ea4edce86ddf168995e51 (patch) | |
tree | fb8b987b896ded10ce6e1f9a4fa344ccdd987515 /wsutil/crc6.c | |
parent | 2359e67f9c42cc285935c70fe8e9cc6b9f369797 (diff) | |
download | wireshark-10b83e6931debe1f1f2ea4edce86ddf168995e51.tar.gz |
Add editor-modelines; adjust whitespace.
Change-Id: I8cad872cee972a6d22a72852dac57fd188daca84
Reviewed-on: https://code.wireshark.org/review/4683
Reviewed-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'wsutil/crc6.c')
-rw-r--r-- | wsutil/crc6.c | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/wsutil/crc6.c b/wsutil/crc6.c index ad2d990b83..da5b620ba7 100644 --- a/wsutil/crc6.c +++ b/wsutil/crc6.c @@ -1061,8 +1061,8 @@ guint16 update_crc6_by_bytes(guint16 crc6, guint8 byte1, guint8 byte2) { guint32 polynomial = 0x6F << 15; for (bit = 15; - bit >= 0; - --bit) + bit >= 0; + --bit) { if (remainder & (0x40 << bit)) { @@ -1082,7 +1082,7 @@ guint16 crc6_compute(const guint8 *data_blk_ptr, int data_blk_size) h = 0; byteIndex = 0; - if(data_blk_size == 0) + if (data_blk_size == 0) { return 0; } @@ -1094,7 +1094,20 @@ guint16 crc6_compute(const guint8 *data_blk_ptr, int data_blk_size) h = crc6_table[h]; byteIndex++; } - while(byteIndex < data_blk_size); + while (byteIndex < data_blk_size); return h; } + +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 4 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * vi: set shiftwidth=4 tabstop=8 expandtab: + * :indentSize=4:tabSize=8:noTabs=true: + */ |