summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJelte Jansen <jeltejan@NLnetLabs.nl>2007-06-25 12:09:10 +0200
committerJelte Jansen <jeltejan@NLnetLabs.nl>2007-06-25 12:09:10 +0200
commit5cae28acd6eb1365889da8804c6e67d488628570 (patch)
tree94aa673da462d575da08784b0c3afbf8eb8b7f78 /examples
parent2141b9106bfb02a6af411b702ccf197b33d80b6f (diff)
downloadldns-5cae28acd6eb1365889da8804c6e67d488628570.tar.gz
lint and doc warnings removed
Diffstat (limited to 'examples')
-rw-r--r--examples/ldns-keyfetcher.c25
-rw-r--r--examples/ldns-signzone.c2
2 files changed, 16 insertions, 11 deletions
diff --git a/examples/ldns-keyfetcher.c b/examples/ldns-keyfetcher.c
index 28eec706..94f02166 100644
--- a/examples/ldns-keyfetcher.c
+++ b/examples/ldns-keyfetcher.c
@@ -238,11 +238,12 @@ retrieve_dnskeys(ldns_resolver *local_res, ldns_rdf *name, ldns_rr_type t,
printf("Comparing answer list of answer to previous\n\n");
}
ldns_rr_list_sort(ldns_pkt_answer(p));
+ ldns_rr_list_sort(answer_list);
if (ldns_rr_list_compare(answer_list, ldns_pkt_answer(p)) != 0) {
fprintf(stderr, "ERROR: different answer answer from nameserver\n");
- fprintf(stderr, "I had (from previous servers):\n");
+ fprintf(stderr, "\nI had (from previous servers):\n");
ldns_rr_list_print(stderr, answer_list);
- fprintf(stderr, "I received (from nameserver at ");
+ fprintf(stderr, "\nI received (from nameserver at ");
ldns_rdf_print(stderr, ldns_resolver_nameservers(res)[0]);
fprintf(stderr, "):\n");
ldns_rr_list_print(stderr, ldns_pkt_answer(p));
@@ -260,11 +261,12 @@ retrieve_dnskeys(ldns_resolver *local_res, ldns_rdf *name, ldns_rr_type t,
printf("Comparing authority list of answer to previous\n\n");
}
ldns_rr_list_sort(ldns_pkt_authority(p));
+ ldns_rr_list_sort(authority_list);
if (ldns_rr_list_compare(authority_list, ldns_pkt_authority(p)) != 0) {
fprintf(stderr, "ERROR: different authority answer from nameserver\n");
- fprintf(stderr, "I had (from previous servers):\n");
+ fprintf(stderr, "\nI had (from previous servers):\n");
ldns_rr_list_print(stderr, authority_list);
- fprintf(stderr, "I received (from nameserver at ");
+ fprintf(stderr, "\nI received (from nameserver at ");
ldns_rdf_print(stderr, ldns_resolver_nameservers(res)[0]);
fprintf(stderr, "):\n");
ldns_rr_list_print(stderr, ldns_pkt_authority(p));
@@ -325,11 +327,12 @@ retrieve_dnskeys(ldns_resolver *local_res, ldns_rdf *name, ldns_rr_type t,
printf("Comparing answer list of answer to previous\n\n");
}
ldns_rr_list_sort(ldns_pkt_answer(p));
+ ldns_rr_list_sort(answer_list);
if (ldns_rr_list_compare(answer_list, ldns_pkt_answer(p)) != 0) {
fprintf(stderr, "ERROR: different answer answer from nameserver\n");
- fprintf(stderr, "I had (from previous servers):\n");
+ fprintf(stderr, "\nI had (from previous servers):\n");
ldns_rr_list_print(stderr, answer_list);
- fprintf(stderr, "I received (from nameserver at ");
+ fprintf(stderr, "\nI received (from nameserver at ");
ldns_rdf_print(stderr, ldns_resolver_nameservers(res)[0]);
fprintf(stderr, "):\n");
ldns_rr_list_print(stderr, ldns_pkt_answer(p));
@@ -347,11 +350,12 @@ retrieve_dnskeys(ldns_resolver *local_res, ldns_rdf *name, ldns_rr_type t,
printf("Comparing authority list of answer to previous\n\n");
}
ldns_rr_list_sort(ldns_pkt_authority(p));
+ ldns_rr_list_sort(authority_list);
if (ldns_rr_list_compare(authority_list, ldns_pkt_authority(p)) != 0) {
fprintf(stderr, "ERROR: different authority answer from nameserver\n");
- fprintf(stderr, "I had (from previous servers):\n");
+ fprintf(stderr, "\nI had (from previous servers):\n");
ldns_rr_list_print(stderr, authority_list);
- fprintf(stderr, "I received (from nameserver at ");
+ fprintf(stderr, "\nI received (from nameserver at ");
ldns_rdf_print(stderr, ldns_resolver_nameservers(res)[0]);
fprintf(stderr, "):\n");
ldns_rr_list_print(stderr, ldns_pkt_authority(p));
@@ -466,11 +470,12 @@ retrieve_dnskeys(ldns_resolver *local_res, ldns_rdf *name, ldns_rr_type t,
printf("1Comparing answer rr list of answer to previous\n");
}
ldns_rr_list_sort(ldns_pkt_answer(p));
+ ldns_rr_list_sort(answer_list);
if (ldns_rr_list_compare(answer_list, ldns_pkt_answer(p)) != 0) {
printf("ERROR: different answer section in response from nameserver\n");
- fprintf(stderr, "I had:\n");
+ fprintf(stderr, "\nI had:\n");
ldns_rr_list_print(stderr, answer_list);
- fprintf(stderr, "I received (from nameserver at ");
+ fprintf(stderr, "\nI received (from nameserver at ");
ldns_rdf_print(stderr, ldns_resolver_nameservers(res)[0]);
fprintf(stderr, "):\n");
ldns_rr_list_print(stderr, ldns_pkt_answer(p));
diff --git a/examples/ldns-signzone.c b/examples/ldns-signzone.c
index 83d207f9..f2cf8236 100644
--- a/examples/ldns-signzone.c
+++ b/examples/ldns-signzone.c
@@ -390,7 +390,7 @@ main(int argc, char *argv[])
pubkey_gen = ldns_key2rr(key);
if (verbosity >= 2) {
- printf(stderr, "Looking for key with keytag %u or %u\n", ldns_calc_keytag(pubkey_gen), ldns_calc_keytag(pubkey_gen) + 1);
+ fprintf(stderr, "Looking for key with keytag %u or %u\n", (unsigned int) ldns_calc_keytag(pubkey_gen), (unsigned int) ldns_calc_keytag(pubkey_gen) + 1);
}
for (key_i = 0; key_i < ldns_rr_list_rr_count(orig_rrs); key_i++) {
pubkey = ldns_rr_list_rr(orig_rrs, key_i);