mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2026-04-18 07:48:32 +01:00
Fix compiler warning.
This commit is contained in:
@@ -103,7 +103,7 @@ unsigned char *find_pseudoheader(struct dns_header *header, size_t plen, size_t
|
|||||||
size_t add_pseudoheader(struct dns_header *header, size_t plen, unsigned char *limit,
|
size_t add_pseudoheader(struct dns_header *header, size_t plen, unsigned char *limit,
|
||||||
int optno, unsigned char *opt, size_t optlen, int set_do, int replace)
|
int optno, unsigned char *opt, size_t optlen, int set_do, int replace)
|
||||||
{
|
{
|
||||||
unsigned char *lenp, *datap, *p, *udp_len, *buff = NULL;
|
unsigned char *lenp = NULL, *datap = NULL, *p, *udp_len, *buff = NULL;
|
||||||
int rdlen = 0, is_sign, is_last;
|
int rdlen = 0, is_sign, is_last;
|
||||||
unsigned short flags = set_do ? 0x8000 : 0, rcode = 0;
|
unsigned short flags = set_do ? 0x8000 : 0, rcode = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -5734,7 +5734,7 @@ struct hostsfile *expand_filelist(struct hostsfile *list)
|
|||||||
struct dirent **namelist;
|
struct dirent **namelist;
|
||||||
|
|
||||||
/* find largest used index */
|
/* find largest used index */
|
||||||
for (i = SRC_AH, ah = list; ah; ah = ah->next)
|
for (last = NULL, i = SRC_AH, ah = list; ah; ah = ah->next)
|
||||||
{
|
{
|
||||||
last = ah;
|
last = ah;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user