diff --git a/bin/tests/name_test.c b/bin/tests/name_test.c index 1a154fe496..57081c19c1 100644 --- a/bin/tests/name_test.c +++ b/bin/tests/name_test.c @@ -1,13 +1,11 @@ /* - * Copyright (C) 1998-2001, 2003-2005, 2007, 2009, 2015-2017 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 1998-2001, 2003-2005, 2007, 2009, 2015-2018 Internet Systems Consortium, Inc. ("ISC") * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -/* $Id: name_test.c,v 1.43 2009/09/02 23:48:01 tbox Exp $ */ - #include #include @@ -123,8 +121,8 @@ main(int argc, char *argv[]) { dns_rootname, 0, NULL); if (result != 0) { fprintf(stderr, - "dns_name_fromtext() failed: %d\n", - result); + "dns_name_fromtext() failed: %s\n", + dns_result_totext(result)); exit(1); } origin = &oname.name; @@ -147,8 +145,8 @@ main(int argc, char *argv[]) { 0, NULL); if (result != 0) { fprintf(stderr, - "dns_name_fromtext() failed: %d\n", - result); + "dns_name_fromtext() failed: %s\n", + dns_result_totext(result)); exit(1); } } diff --git a/util/copyrights b/util/copyrights index 144340248a..2d8375ccd7 100644 --- a/util/copyrights +++ b/util/copyrights @@ -496,7 +496,7 @@ ./bin/tests/mem/win32/t_mem.vcxproj.in X 2013,2015,2016,2017 ./bin/tests/mem/win32/t_mem.vcxproj.user X 2013 ./bin/tests/mempool_test.c C 1999,2000,2001,2004,2007,2016 -./bin/tests/name_test.c C 1998,1999,2000,2001,2003,2004,2005,2007,2009,2015,2016,2017 +./bin/tests/name_test.c C 1998,1999,2000,2001,2003,2004,2005,2007,2009,2015,2016,2017,2018 ./bin/tests/named.conf CONF-C 1999,2000,2001,2004,2007,2011,2015,2016 ./bin/tests/names/Makefile.in MAKE 1999,2000,2001,2002,2004,2007,2009,2012,2014,2016,2017 ./bin/tests/names/dns_name_compare_data X 1999,2000,2001