}
rep->flags = ldns_buffer_read_u16_at(c->buffer, 2);
rep->replysize = ldns_buffer_limit(c->buffer) - DNS_ID_AND_FLAGS;
- log_info("got reply of size %d", rep->replysize);
+ log_info("got reply of size %u", (unsigned)rep->replysize);
rep->reply = (uint8_t*)malloc(rep->replysize);
if(!rep->reply) {
free(rep);
- compilation without locks fixup.
- removed include of unportable header from lookup3.c.
- more portable use of struct msghdr.
+ - casts for printf warning portability.
2 April 2007: Wouter
- check sizes of udp received messages, not too short.
SVN=yes
IP6=yes
FIXCONFIGURE=no
- RUN_TEST=no
+ RUN_TEST=yes
LDNS=
LIBEVENT=
eval ${vars[$i]}
buf[i*2 + 1] = hexchar[ data8[i] & 0xF ];
}
buf[length*2] = 0;
- log_info("%s[%d] %s", msg, length, buf);
+ log_info("%s[%u] %s", msg, (unsigned)length, buf);
free(buf);
}
{
size_t i;
char num[17];
- log_info("Slabhash %s: %d tables mask=%x shift=%d",
- id, sl->size, sl->mask, sl->shift);
+ log_info("Slabhash %s: %u tables mask=%x shift=%d",
+ id, (unsigned)sl->size, sl->mask, sl->shift);
for(i=0; i<sl->size; i++) {
snprintf(num, sizeof(num), "table %u", (unsigned)i);
lruhash_status(sl->array[i], num, extended);