]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
lint and doxygen fixes.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 16 Feb 2012 10:08:07 +0000 (10:08 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 16 Feb 2012 10:08:07 +0000 (10:08 +0000)
git-svn-id: file:///svn/unbound/trunk@2631 be551aaa-1e26-0410-a405-d3ace91eadb9

Makefile.in
services/cache/infra.c
services/outside_network.c
testcode/fake_event.c
validator/val_anchor.c
validator/val_sigcrypt.c

index d67074108452ea25f12dc15ef7aa808f156e3a89..011c04a2ded375de05f424749b04fa4a140256b3 100644 (file)
@@ -63,7 +63,7 @@ LINT=splint
 LINTFLAGS=+quiet -weak -warnposix -unrecog -Din_addr_t=uint32_t -Du_int=unsigned -Du_char=uint8_t -preproc -Drlimit=rlimit64 -D__gnuc_va_list=va_list
 #-Dglob64=glob -Dglobfree64=globfree
 # compat with openssl linux edition.
-LINTFLAGS+="-DBN_ULONG=unsigned long" -Dkrb5_int32=int "-Dkrb5_ui_4=unsigned int" -DPQ_64BIT=uint64_t -DRC4_INT=unsigned -fixedformalarray -D"ENGINE=unsigned" -D"RSA=unsigned" -D"DSA=unsigned" -D"EVP_PKEY=unsigned" -D"EVP_MD=unsigned" -D"SSL=unsigned" -D"SSL_CTX=unsigned" -D"X509=unsigned" -D"RC4_KEY=unsigned" -D"EVP_MD_CTX=unsigned"
+LINTFLAGS+="-DBN_ULONG=unsigned long" -Dkrb5_int32=int "-Dkrb5_ui_4=unsigned int" -DPQ_64BIT=uint64_t -DRC4_INT=unsigned -fixedformalarray -D"ENGINE=unsigned" -D"RSA=unsigned" -D"DSA=unsigned" -D"EVP_PKEY=unsigned" -D"EVP_MD=unsigned" -D"SSL=unsigned" -D"SSL_CTX=unsigned" -D"X509=unsigned" -D"RC4_KEY=unsigned" -D"EVP_MD_CTX=unsigned" -D"ECDSA_SIG=DSA_SIG"
 # compat with NetBSD
 LINTFLAGS+=@NETBSD_LINTFLAGS@
 # compat with OpenBSD
index 06c5e947bc4be61da4601eaf072c7ca70a52f78d..dbbd50326e591e8fc5fb6f2e4219ec47d5b53247 100644 (file)
@@ -438,9 +438,9 @@ int infra_get_host_rto(struct infra_cache* infra,
                        *delay = (int)(data->probedelay - timenow);
                else    *delay = 0;
        }
-       *tA = data->timeout_A;
-       *tAAAA = data->timeout_AAAA;
-       *tother = data->timeout_other;
+       *tA = (int)data->timeout_A;
+       *tAAAA = (int)data->timeout_AAAA;
+       *tother = (int)data->timeout_other;
        lock_rw_unlock(&e->lock);
        return ttl;
 }
index 3282f60e3aa2ae2cd65be8fc98d6c9da7968ed04..086960be6cc9a45888fd67d70a34057f17f3118d 100644 (file)
@@ -1815,7 +1815,7 @@ outnet_serviced_query(struct outside_network* outnet,
                /* make new serviced query entry */
                sq = serviced_create(outnet, buff, dnssec, want_dnssec,
                        tcp_upstream, ssl_upstream, addr, addrlen, zone,
-                       zonelen, qtype);
+                       zonelen, (int)qtype);
                if(!sq) {
                        free(cb);
                        return NULL;
index 8271d00922cff5f0fc3411a0acaf26474276a9b2..159ea30896d2c0b1d7ae8a25198d2234f326fa04 100644 (file)
@@ -1085,7 +1085,7 @@ struct serviced_query* outnet_serviced_query(struct outside_network* outnet,
        pend->addrlen = addrlen;
        pend->zone = memdup(zone, zonelen);
        pend->zonelen = zonelen;
-       pend->qtype = qtype;
+       pend->qtype = (int)qtype;
        log_assert(pend->zone);
        pend->callback = callback;
        pend->cb_arg = callback_arg;
index 5e4c12add7d4d513db58626a02d39c37a1009ad3..d02b423792f3ccb4d345766ab979f38fd1919584 100644 (file)
@@ -931,7 +931,6 @@ assemble_it(struct trust_anchor* ta, size_t num, uint16_t type)
 
 /**
  * Assemble structures for the trust DS and DNSKEY rrsets.
- * @param anchors: trust anchor storage.
  * @param ta: trust anchor
  * @return: false on error.
  */
@@ -1251,7 +1250,7 @@ anchors_delete_insecure(struct val_anchors* anchors, uint16_t c,
        }
 
        /* remove from tree */
-       rbtree_delete(anchors->tree, &ta->node);
+       (void)rbtree_delete(anchors->tree, &ta->node);
        anchors_init_parents_locked(anchors);
        lock_basic_unlock(&anchors->lock);
 
index b63cc2dd690ecd88759c5c80f7c428e67c5900cd..4c79c004d02c90b648d792ced2c5ee0f24326c47 100644 (file)
@@ -1387,9 +1387,9 @@ setup_ecdsa_sig(unsigned char** sig, unsigned int* len)
 {
        ECDSA_SIG* ecdsa_sig;
        int newlen;
-       unsigned int bnsize = (*len)/2;
+       int bnsize = (int)((*len)/2);
        /* if too short or not even length, fails */
-       if(*len < 16 || bnsize*2 != *len)
+       if(*len < 16 || bnsize*2 != (int)*len)
                return 0;
        /* use the raw data to parse two evenly long BIGNUMs, "r | s". */
        ecdsa_sig = ECDSA_SIG_new();