mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
typefix
git-svn-id: file:///svn/unbound/trunk@1307 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
265c199445
commit
371b9f08ef
2 changed files with 6 additions and 3 deletions
|
|
@ -154,7 +154,7 @@ void server_stats_obtain(struct worker* worker, struct worker* who,
|
|||
struct stats_info* s)
|
||||
{
|
||||
uint8_t *reply = NULL;
|
||||
size_t len = 0;
|
||||
uint32_t len = 0;
|
||||
if(worker == who) {
|
||||
/* just fill it in */
|
||||
server_stats_compile(worker, s);
|
||||
|
|
@ -166,10 +166,10 @@ void server_stats_obtain(struct worker* worker, struct worker* who,
|
|||
verbose(VERB_ALGO, "wait for stats reply");
|
||||
if(!tube_read_msg(worker->cmd, &reply, &len, 0))
|
||||
fatal_exit("failed to read stats over cmd channel");
|
||||
if(len != sizeof(*s))
|
||||
if(len != (uint32_t)sizeof(*s))
|
||||
fatal_exit("stats on cmd channel wrong length %d %d",
|
||||
(int)len, (int)sizeof(*s));
|
||||
memcpy(s, reply, len);
|
||||
memcpy(s, reply, (size_t)len);
|
||||
free(reply);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
17 October 2008: Wouter
|
||||
- port Leopard/G5: fixup type conversion size_t/uint32.
|
||||
|
||||
16 October 2008: Wouter
|
||||
- Fixup negative TTL values appearing (reported by Attila Nagy).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue