mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-03 20:29:28 -05:00
please lint.
git-svn-id: file:///svn/unbound/trunk@4814 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
cc538f4f9f
commit
f9c0f359a7
2 changed files with 3 additions and 3 deletions
|
|
@ -315,7 +315,7 @@ send_em(const char* svr, int udp, int usessl, int noanswer, int delay,
|
|||
}
|
||||
for(i=0; i<num; i+=3) {
|
||||
if (delay != 0)
|
||||
sleep(delay);
|
||||
sleep((unsigned)delay);
|
||||
printf("\nNext query is %s %s %s\n", qs[i], qs[i+1], qs[i+2]);
|
||||
write_q(fd, udp, ssl, buf, (uint16_t)get_random(), qs[i],
|
||||
qs[i+1], qs[i+2]);
|
||||
|
|
|
|||
|
|
@ -62,8 +62,8 @@ static int edns_keepalive(struct edns_data* edns_out, struct edns_data* edns_in,
|
|||
edns_opt_list_find(edns_in->opt_list, LDNS_EDNS_KEEPALIVE)) {
|
||||
int keepalive = c->tcp_timeout_msec / 100;
|
||||
uint8_t data[2];
|
||||
data[0] = (keepalive >> 8) & 0xff;
|
||||
data[1] = keepalive & 0xff;
|
||||
data[0] = (uint8_t)((keepalive >> 8) & 0xff);
|
||||
data[1] = (uint8_t)(keepalive & 0xff);
|
||||
if(!edns_opt_list_append(&edns_out->opt_list, LDNS_EDNS_KEEPALIVE,
|
||||
sizeof(data), data, region))
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue