fix buglets

This commit is contained in:
Bob Halley 1999-08-17 01:18:59 +00:00
parent 74c57982c1
commit 27a5e02b8b
2 changed files with 5 additions and 2 deletions

View file

@ -211,6 +211,7 @@ printmessage(dns_message_t *msg) {
if (result != DNS_R_SUCCESS)
return (result);
}
printf("\n");
return (result);
}

View file

@ -229,6 +229,8 @@ main(int argc, char *argv[]) {
if (argc < 2)
usage();
port = atoi(argv[1]);
argv++;
argc--;
} else if (strcmp(argv[0], "+vc") == 0) {
fatal("TCP transport not yet implemented");
} else {
@ -252,8 +254,8 @@ main(int argc, char *argv[]) {
rdtype);
have_type = ISC_TRUE;
} else {
if (dns_rdatatype_fromtext(&nclass,
&tr) !=
if (dns_rdataclass_fromtext(&nclass,
&tr) !=
ISC_R_SUCCESS)
fatal("unknown class "
"or type %s", argv[0]);