From: Miek Gieben Date: Tue, 6 Dec 2005 11:29:29 +0000 (+0000) Subject: fix the u_int16_t usage X-Git-Tag: release-1.1.0~561 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf45da039d25bc3757481c378cb51cafbc0229f3;p=thirdparty%2Fldns.git fix the u_int16_t usage --- diff --git a/higher.c b/higher.c index 2cc75694..c8343a60 100644 --- 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; diff --git a/packet.c b/packet.c index 88370120..b0cc2208 100644 --- 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()); }