]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
fix the u_int16_t usage
authorMiek Gieben <miekg@NLnetLabs.nl>
Tue, 6 Dec 2005 11:29:29 +0000 (11:29 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Tue, 6 Dec 2005 11:29:29 +0000 (11:29 +0000)
higher.c
packet.c

index 2cc75694d64a7e0e342cbbb5a667aaf4b0aa6086..c8343a6073eac0f3653e8c2efc1f6153d26aed80 100644 (file)
--- a/higher.c
+++ b/higher.c
@@ -300,7 +300,7 @@ ldns_getaddrinfo_secure(void)
  */
 ldns_status
 ldns_update_send_simple_addr(const char *fqdn, const char *zone,
-    const char *ipaddr, u_int16_t ttl, ldns_tsig_credentials *tsig_cred)
+    const char *ipaddr, uint16_t ttl, ldns_tsig_credentials *tsig_cred)
 {
        ldns_resolver   *res;
        ldns_pkt        *u_pkt = NULL, *r_pkt;
index 88370120ca00cbada6d352cbf7bec552b66f7f9f..b0cc220872912e29e7d2468a4f792e7ba47f8a92 100644 (file)
--- a/packet.c
+++ b/packet.c
@@ -582,7 +582,7 @@ ldns_pkt_set_random_id(ldns_pkt *packet)
 {
        /* TODO: time is a terrible seed */
        srandom((unsigned) time(NULL) ^ getpid());
-       ldns_pkt_set_id(packet, (u_int16_t)random());
+       ldns_pkt_set_id(packet, (uint16_t)random());
 }