]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Casts for printf portable.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 3 Apr 2007 10:20:59 +0000 (10:20 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 3 Apr 2007 10:20:59 +0000 (10:20 +0000)
git-svn-id: file:///svn/unbound/trunk@219 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/worker.c
doc/Changelog
testcode/testbed.sh
util/log.c
util/storage/slabhash.c

index 431881bbf3caf3d21d8cd00d1fd171d216328d37..10ccb38f5309f017f8cef9aebd9ecd46b4e5a828 100644 (file)
@@ -150,7 +150,7 @@ worker_handle_reply(struct comm_point* c, void* arg, int error,
        }
        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);
index 7e825dbc0def5cfcdf10f87d0170129877361999..307642287d54e8a59a743f7725dc47c26778bb1d 100644 (file)
@@ -7,6 +7,7 @@
        - 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.
index 9c52d1420c2812368b1cad6781a9adb469ed1dee..f338964435897dff11142e30d245a357b59219a8 100755 (executable)
@@ -123,7 +123,7 @@ for((i=0; i<${#hostname[*]}; i=$i+1)); do
        SVN=yes
        IP6=yes
        FIXCONFIGURE=no
-       RUN_TEST=no
+       RUN_TEST=yes
        LDNS=
        LIBEVENT=
        eval ${vars[$i]}
index 0e95a278c710b1f9379916f1fdb61657c269f5bc..9fb35fcdc058744029be08c5186cc225c8d8e29d 100644 (file)
@@ -184,6 +184,6 @@ log_hex(const char* msg, void* data, size_t length)
                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);
 }
index e0d917c84bb53dac0c8cddba17a8c19f16137610..39c954ff6ccfb073c5aa6797391f8ef0749032aa 100644 (file)
@@ -125,8 +125,8 @@ void slabhash_status(struct slabhash* sl, const char* id, int extended)
 {
        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);