]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] Fix bin/tests/rbt_test.c, use portable int types
authorEvan Hunt <each@isc.org>
Thu, 29 May 2014 14:37:13 +0000 (07:37 -0700)
committerEvan Hunt <each@isc.org>
Thu, 29 May 2014 14:37:13 +0000 (07:37 -0700)
bin/tests/rbt_test.c
lib/isc/hash.c
lib/isc/include/isc/hash.h

index f98c1e968ef8e45e1ccbd454bc952e3a37febdb2..66e5dd7cb9e9b7c09ffba3a80e0f144727124c5b 100644 (file)
@@ -430,7 +430,7 @@ main(int argc, char **argv) {
 
                        } else if (CMDCHECK("print")) {
                                if (arg == NULL || *arg == '\0')
-                                       dns_rbt_printall(rbt, NULL);
+                                       dns_rbt_printtext(rbt, NULL, stdout);
                                else
                                        printf("usage: print\n");
 
index aff12eb21d24eb384df519b548a847f476fd0849..5d67c053b39869ddf83a348d13e2884d1311d76e 100644 (file)
@@ -395,7 +395,7 @@ isc_hash_calc(const unsigned char *key, unsigned int keylen,
 }
 
 void
-isc__hash_setvec(const uint16_t *vec) {
+isc__hash_setvec(const isc_uint16_t *vec) {
        int i;
        hash_random_t *p;
 
index 662e37aff4ab5c0689d5524fe6dcac93cbf18aa2..3dec1d9946abb0ea9d5d725e3f0c769a6676ab28 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef ISC_HASH_H
 #define ISC_HASH_H 1
 
-#include <stdint.h>
+#include <isc/types.h>
 
 /*****
  ***** Module Info
@@ -183,7 +183,7 @@ isc_hash_calc(const unsigned char *key, unsigned int keylen,
 /*@}*/
 
 void
-isc__hash_setvec(const uint16_t *vec);
+isc__hash_setvec(const isc_uint16_t *vec);
 
 /*!<
  * \brief Set the contents of the random vector used in hashing.