[v9_8] silence coverity warnings

- remove dead code in server.c

(cherry picked from commit 48def18179)
This commit is contained in:
Evan Hunt 2014-01-31 09:40:31 -08:00
parent 1e3d792c8e
commit ad3e926a40
2 changed files with 3 additions and 6 deletions

View file

@ -1324,10 +1324,8 @@ check_dbtype(dns_zone_t *zone, unsigned int dbtypec, const char **dbargv,
* Check that all the arguments match.
*/
for (i = 0; i < dbtypec; i++)
if (argv[i] == NULL || strcmp(argv[i], dbargv[i]) != 0) {
if (argv[i] == NULL || strcmp(argv[i], dbargv[i]) != 0)
CHECK(ISC_R_FAILURE);
break;
}
/*
* Check that there are not extra arguments.

View file

@ -823,7 +823,6 @@ t_dns_name_fullcompare(void) {
if (fp != NULL) {
line = 0;
while ((p = t_fgetbs(fp)) != NULL) {
++line;
/*
@ -851,8 +850,8 @@ t_dns_name_fullcompare(void) {
else if (!strcmp(Tokens[2], "commonancestor"))
reln = dns_namereln_commonancestor;
else {
t_info("bad format at line %d\n",
line);
t_info("bad format at line %d\n", line);
(void)free(p);
continue;
}
result = test_dns_name_fullcompare(