]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
typefix
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 17 Oct 2008 09:10:24 +0000 (09:10 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 17 Oct 2008 09:10:24 +0000 (09:10 +0000)
git-svn-id: file:///svn/unbound/trunk@1307 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/stats.c
doc/Changelog

index 63dec6774ab49f1420febd8e36fedd33fd744569..6f67b46a7c8fe3237c87534d7189f27cac6ff711 100644 (file)
@@ -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);
 }
 
index 8c11885ea57bfcb67672535e0d00ef3269a78b8c..686b89bea61757939ea84a6ff00659d9bd00536c 100644 (file)
@@ -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).