summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-digital/lib/hdlc_deframer_bp_impl.cc4
-rw-r--r--gr-digital/lib/hdlc_deframer_bp_impl.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/gr-digital/lib/hdlc_deframer_bp_impl.cc b/gr-digital/lib/hdlc_deframer_bp_impl.cc
index 4a768ec06b..ff675452ad 100644
--- a/gr-digital/lib/hdlc_deframer_bp_impl.cc
+++ b/gr-digital/lib/hdlc_deframer_bp_impl.cc
@@ -20,9 +20,9 @@ namespace gr {
namespace digital {
namespace {
-unsigned int crc_ccitt(unsigned char* data, size_t len)
+unsigned int crc_ccitt(const unsigned char* data, size_t len)
{
- unsigned int POLY = 0x8408; // reflected 0x1021
+ const unsigned int POLY = 0x8408; // reflected 0x1021
unsigned short crc = 0xFFFF;
for (size_t i = 0; i < len; i++) {
crc ^= data[i];
diff --git a/gr-digital/lib/hdlc_deframer_bp_impl.h b/gr-digital/lib/hdlc_deframer_bp_impl.h
index 28b1fa896b..2c3013459d 100644
--- a/gr-digital/lib/hdlc_deframer_bp_impl.h
+++ b/gr-digital/lib/hdlc_deframer_bp_impl.h
@@ -19,8 +19,8 @@ namespace digital {
class hdlc_deframer_bp_impl : public hdlc_deframer_bp
{
private:
- size_t d_length_min;
- size_t d_length_max;
+ const size_t d_length_min;
+ const size_t d_length_max;
size_t d_ones = 0;
size_t d_bytectr = 0;
size_t d_bitctr = 0;