diff options
author | Internet Software Consortium, Inc <@isc.org> | 2007-09-07 14:14:56 -0600 |
---|---|---|
committer | LaMont Jones <lamont@debian.org> | 2007-09-07 14:14:56 -0600 |
commit | bfef371771ff5f41ee1898ea9e0bf3731a456665 (patch) | |
tree | 7ba216c29598e574b5fab1ca41dbf98c5566a895 /bin/tests/name_test.c | |
parent | eb4d342fa8060a513e2d0642d49279578bd10319 (diff) | |
download | bind9-bfef371771ff5f41ee1898ea9e0bf3731a456665.tar.gz |
9.2.6b1
Diffstat (limited to 'bin/tests/name_test.c')
-rw-r--r-- | bin/tests/name_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/tests/name_test.c b/bin/tests/name_test.c index 77d7f147..3390fb54 100644 --- a/bin/tests/name_test.c +++ b/bin/tests/name_test.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1998-2001 Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: name_test.c,v 1.33.2.1 2004/03/09 06:09:33 marka Exp $ */ +/* $Id: name_test.c,v 1.33.2.3 2005/03/17 03:59:31 marka Exp $ */ #include <config.h> @@ -168,14 +168,14 @@ main(int argc, char *argv[]) { dns_fixedname_init(&wname2); while (fgets(s, sizeof s, stdin) != NULL) { len = strlen(s); - if (len > 0 && s[len - 1] == '\n') { + if (len > 0U && s[len - 1] == '\n') { s[len - 1] = '\0'; len--; } isc_buffer_init(&source, s, len); isc_buffer_add(&source, len); - if (len > 0) + if (len > 0U) result = dns_name_fromtext(name, &source, origin, downcase, NULL); else { |