Skip to content
Snippets Groups Projects
Commit cf6480c3 authored by Daniel Salzman's avatar Daniel Salzman Committed by Lubos Slovak
Browse files

naptr: fix compile warning (missing const)

parent 5c2cba70
No related merge requests found
...@@ -41,7 +41,7 @@ static inline int naptr_header_size(const uint8_t *naptr, const uint8_t *maxp) ...@@ -41,7 +41,7 @@ static inline int naptr_header_size(const uint8_t *naptr, const uint8_t *maxp)
/* Variable fields size (flags, services, regexp) */ /* Variable fields size (flags, services, regexp) */
for (int i = 0; i < 3; i++) { for (int i = 0; i < 3; i++) {
uint8_t *len_ptr = naptr + size; const uint8_t *len_ptr = naptr + size;
printf("Checking len_ptr = %p, maxp = %p\n", printf("Checking len_ptr = %p, maxp = %p\n",
len_ptr, maxp); len_ptr, maxp);
if (len_ptr >= maxp) { if (len_ptr >= maxp) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment