summaryrefslogtreecommitdiff
path: root/gr-digital/lib/hdlc_deframer_bp_impl.cc
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2021-02-28 22:47:31 +0000
committermormj <34754695+mormj@users.noreply.github.com>2021-03-01 07:52:44 -0500
commit0231d9746b41c3980f30390557b7a08e538f25c6 (patch)
treeaa89e67b93642c64a60dfad1715587d90a8a2f02 /gr-digital/lib/hdlc_deframer_bp_impl.cc
parent1eea52a4308f660412e17b13573a5792737c9a02 (diff)
digital/hdlc_deframer: Add some const
Signed-off-by: Thomas Habets <thomas@habets.se>
Diffstat (limited to 'gr-digital/lib/hdlc_deframer_bp_impl.cc')
-rw-r--r--gr-digital/lib/hdlc_deframer_bp_impl.cc4
1 files changed, 2 insertions, 2 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];