summaryrefslogtreecommitdiff
path: root/bin/tests/name_test.c
diff options
context:
space:
mode:
authorLaMont Jones <lamont@debian.org>2009-11-16 19:26:14 -0600
committerLaMont Jones <lamont@debian.org>2009-11-16 19:26:14 -0600
commite3246fedd37d119c2bf6efb28d7492b3a595373a (patch)
treeaed2129efc2efb2bb526e1e4abf9080d3ec9ab6b /bin/tests/name_test.c
parentf133ad6c8e92691761b732d65cca85e4e27d6f51 (diff)
downloadbind9-e3246fedd37d119c2bf6efb28d7492b3a595373a.tar.gz
9.7.0a3
Diffstat (limited to 'bin/tests/name_test.c')
-rw-r--r--bin/tests/name_test.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/bin/tests/name_test.c b/bin/tests/name_test.c
index 799115fe..9c98685a 100644
--- a/bin/tests/name_test.c
+++ b/bin/tests/name_test.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004, 2005, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2001, 2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: name_test.c,v 1.41 2007/06/19 23:46:59 tbox Exp $ */
+/* $Id: name_test.c,v 1.43 2009/09/02 23:48:01 tbox Exp $ */
#include <config.h>
@@ -73,7 +73,7 @@ main(int argc, char *argv[]) {
isc_buffer_t source;
isc_region_t r;
dns_name_t *name, *origin, *comp, *down;
- isc_boolean_t downcase = ISC_FALSE;
+ unsigned int downcase = 0;
size_t len;
isc_boolean_t quiet = ISC_FALSE;
isc_boolean_t concatenate = ISC_FALSE;
@@ -128,8 +128,7 @@ main(int argc, char *argv[]) {
dns_fixedname_init(&oname);
origin = &oname.name;
result = dns_name_fromtext(origin, &source,
- dns_rootname, ISC_FALSE,
- NULL);
+ dns_rootname, 0, NULL);
if (result != 0) {
fprintf(stderr,
"dns_name_fromtext() failed: %d\n",
@@ -151,8 +150,8 @@ main(int argc, char *argv[]) {
isc_buffer_add(&source, len);
dns_fixedname_init(&compname);
comp = &compname.name;
- result = dns_name_fromtext(comp, &source,
- origin, ISC_FALSE, NULL);
+ result = dns_name_fromtext(comp, &source, origin,
+ 0, NULL);
if (result != 0) {
fprintf(stderr,
"dns_name_fromtext() failed: %d\n",