Re: [PATCH v3] dnsproxy: fix signedness warnings
Denis Kenzior <[email protected]>
| Newsgroups | dev.linux.lists.connman |
|---|---|
| Message-ID | <[email protected]> |
Hi Brian,
> * The cached packet contains always the TCP offset (two bytes)
> @@ -508,7 +513,7 @@ static void send_cached_response(int sk, const unsigned char *ptr, size_t len,
> if (answers == 0)
> hdr->aa = 1;
> else {
> - const int adj_len = len - 2;
> + const size_t adj_len = len - 2;
> update_cached_ttl((unsigned char *)hdr, adj_len, ttl);
> }
>
I dropped this chunk when applying.
Regards,
-Denis