summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorWillem Toorop <willem@NLnetLabs.nl>2012-05-04 16:09:45 +0200
committerWillem Toorop <willem@NLnetLabs.nl>2012-05-04 16:09:45 +0200
commit3de966a4941e264f7b9da2d801c70849b0ca7244 (patch)
tree8c72c3b41ecaf9a95ae1dd5ede198a4b8c064c03 /examples
parent6618602e9c1ad8471d5ce3c9b8ae3f925468dece (diff)
downloadldns-3de966a4941e264f7b9da2d801c70849b0ca7244.tar.gz
Removed unused variables (to eliminate compiler warnings).
Diffstat (limited to 'examples')
-rw-r--r--examples/ldns-keyfetcher.c2
-rw-r--r--examples/ldns-signzone.c13
-rw-r--r--examples/ldns-testns.c3
3 files changed, 3 insertions, 15 deletions
diff --git a/examples/ldns-keyfetcher.c b/examples/ldns-keyfetcher.c
index c24f5111..267822f8 100644
--- a/examples/ldns-keyfetcher.c
+++ b/examples/ldns-keyfetcher.c
@@ -38,7 +38,6 @@ retrieve_dnskeys(ldns_resolver *local_res, ldns_rdf *name, ldns_rr_type t,
ldns_pkt *p;
ldns_rr_list *new_nss_a;
ldns_rr_list *new_nss_aaaa;
- ldns_rr_list *final_answer;
ldns_rr_list *new_nss;
ldns_rr_list *ns_addr;
ldns_rr_list *ns_addr2;
@@ -60,7 +59,6 @@ retrieve_dnskeys(ldns_resolver *local_res, ldns_rdf *name, ldns_rr_type t,
new_nss = NULL;
ns_addr = NULL;
ns_addr2 = NULL;
- final_answer = NULL;
p = ldns_pkt_new();
res = ldns_resolver_new();
diff --git a/examples/ldns-signzone.c b/examples/ldns-signzone.c
index 11383dce..6ef1cc1d 100644
--- a/examples/ldns-signzone.c
+++ b/examples/ldns-signzone.c
@@ -36,7 +36,6 @@ usage(FILE *fp, const char *prog) {
fprintf(fp, " -e <date>\texpiration date\n");
fprintf(fp, " -f <file>\toutput zone to file (default <name>.signed)\n");
fprintf(fp, " -i <date>\tinception date\n");
- fprintf(fp, " -l\t\tLeave old DNSSEC RRSIGS and NSEC(3) records intact\n");
fprintf(fp, " -o <domain>\torigin for the zone\n");
fprintf(fp, " -v\t\tprint version and exit\n");
fprintf(fp, " -A\t\tsign DNSKEY with all keys instead of minimal\n");
@@ -341,9 +340,6 @@ main(int argc, char *argv[])
ldns_status s;
size_t i;
ldns_rr_list *added_rrs;
- ldns_status status;
-
- bool leave_old_dnssec_data = false;
char *outputfile_name = NULL;
FILE *outputfile;
@@ -459,9 +455,6 @@ main(int argc, char *argv[])
inception = (uint32_t) atol(optarg);
}
break;
- case 'l':
- leave_old_dnssec_data = true;
- break;
case 'n':
use_nsec3 = true;
break;
@@ -731,9 +724,9 @@ main(int argc, char *argv[])
}
/* and, if not unset by -p, find or create the corresponding DNSKEY record */
if (key) {
- status = find_or_create_pubkey(keyfile_name_base,
- key, orig_zone,
- add_keys, ttl);
+ (void) find_or_create_pubkey(keyfile_name_base,
+ key, orig_zone,
+ add_keys, ttl);
}
argi++;
}
diff --git a/examples/ldns-testns.c b/examples/ldns-testns.c
index 5dc06a29..eb007107 100644
--- a/examples/ldns-testns.c
+++ b/examples/ldns-testns.c
@@ -368,14 +368,11 @@ static void
service(void)
{
fd_set rset, wset, eset;
- struct timeval timeout;
int count;
int maxfd;
/* service */
count = 0;
- timeout.tv_sec = 0;
- timeout.tv_usec = 0;
while (1) {
#ifndef S_SPLINT_S
FD_ZERO(&rset);