diff options
author | Michele Papalini <micpapal@cisco.com> | 2023-02-01 17:25:21 +0100 |
---|---|---|
committer | Michele Papalini <micpapal@cisco.com> | 2023-02-02 14:56:22 +0100 |
commit | b96d1545a8d2a173dc5911ed0bca3e04dbb02176 (patch) | |
tree | a69893191b0f7d52c10135e8b0c7702378ffee69 /apps/http-proxy/includes/hicn/http-proxy/utils.h | |
parent | f72846be51c7fd70310ea166cfc2ffbdc930f0e6 (diff) |
fix(apps): fix issues reported by sonarqube
Ref: HICN-836
Signed-off-by: Michele Papalini <micpapal@cisco.com>
Change-Id: Ie76771ca75bd224084ce3c893aba661b97064419
Diffstat (limited to 'apps/http-proxy/includes/hicn/http-proxy/utils.h')
-rw-r--r-- | apps/http-proxy/includes/hicn/http-proxy/utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/http-proxy/includes/hicn/http-proxy/utils.h b/apps/http-proxy/includes/hicn/http-proxy/utils.h index 0df24dfd9..9865d8e4c 100644 --- a/apps/http-proxy/includes/hicn/http-proxy/utils.h +++ b/apps/http-proxy/includes/hicn/http-proxy/utils.h @@ -35,7 +35,7 @@ TRANSPORT_ALWAYS_INLINE std::string generatePrefix( str += pos; uint32_t locator_hash = utils::hash::fnv32_buf(str, strlen(str)); - uint16_t* word = (uint16_t*)&locator_hash; + const uint16_t* word = (const uint16_t*)&locator_hash; std::stringstream stream; stream << first_ipv6_word << ":0"; @@ -47,4 +47,4 @@ TRANSPORT_ALWAYS_INLINE std::string generatePrefix( stream << "::"; return stream.str(); -}
\ No newline at end of file +} |