]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix Nits for 1.5.10 reported by Dag-Erling Smorgrav.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 30 Sep 2016 09:37:20 +0000 (09:37 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 30 Sep 2016 09:37:20 +0000 (09:37 +0000)
git-svn-id: file:///svn/unbound/trunk@3875 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/localzone.c
smallapp/unbound-anchor.c
smallapp/worker_cb.c

index a5cbfe1a4f20e6494578482493dc462ea81eddac..cbb08f4880412aed20ab1415fa5534e264d9c7b4 100644 (file)
@@ -1,3 +1,6 @@
+30 September 2016: Wouter
+       - Fix Nits for 1.5.10 reported by Dag-Erling Smorgrav.
+
 29 September 2016: Wouter
        - Fix #838: 1.5.10 cannot be built on Solaris, undefined PATH_MAX.
        - Fix #839: Memory grows unexpectedly with large RPZ files.
index 01070f239e8a77cb4387890f0ed0c72e1a93d70b..31645224adbcd12a8273c64c6dbbc32934072d5d 100644 (file)
@@ -1411,7 +1411,7 @@ lz_inform_print(struct local_zone* z, struct query_info* qinfo,
        log_nametypeclass(0, txt, qinfo->qname, qinfo->qtype, qinfo->qclass);
 }
 
-enum localzone_type
+static enum localzone_type
 lz_type(uint8_t *taglist, size_t taglen, uint8_t *taglist2, size_t taglen2,
        uint8_t *tagactions, size_t tagactionssize, enum localzone_type lzt,
        struct comm_reply* repinfo, struct rbtree_t* override_tree, int* tag,
index 00ab5e2ae0ef6f872e46461b01a9ddef95417b74..68e8e405f7149b17d4dcbb372150d1e023783136 100644 (file)
@@ -420,7 +420,7 @@ read_builtin_cert(void)
 {
        const char* builtin_cert = get_builtin_cert();
        STACK_OF(X509)* sk;
-       BIO *bio = BIO_new_mem_buf((void*)builtin_cert,
+       BIO *bio = BIO_new_mem_buf(builtin_cert,
                (int)strlen(builtin_cert));
        if(!bio) {
                if(verb) printf("out of memory\n");
index 6ed95ac0107c1f5962dc0e1a202fd0dd7a67e603..fd8488a3880f806edc32462e693f35d0e26e37dc 100644 (file)
@@ -225,8 +225,8 @@ struct order_id {
 
 int order_lock_cmp(const void* e1, const void* e2)
 {
-        struct order_id* o1 = (struct order_id*)e1;
-        struct order_id* o2 = (struct order_id*)e2;
+        const struct order_id* o1 = e1;
+        const struct order_id* o2 = e2;
         if(o1->thr < o2->thr) return -1;
         if(o1->thr > o2->thr) return 1;
         if(o1->instance < o2->instance) return -1;
@@ -237,7 +237,7 @@ int order_lock_cmp(const void* e1, const void* e2)
 int
 codeline_cmp(const void* a, const void* b)
 {
-        return strcmp((const char*)a, (const char*)b);
+        return strcmp(a, b);
 }
 
 int replay_var_compare(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))