cppcheck: can add const on some params

This commit is contained in:
Philippe Teuwen committed 2023-01-15 02:23:19 +01:00
1 parent 0a19c3e891
commit 048291dcb3
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -1247,7 +1247,7 @@ inline uint64_t leadingzeros64(uint64_t a) {
}
int byte_strstr(uint8_t *src, size_t srclen, uint8_t *pattern, size_t plen) {
int byte_strstr(const uint8_t *src, size_t srclen, const uint8_t *pattern, size_t plen) {
size_t max = srclen - plen + 1;