summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Toorop <willem@nlnetlabs.nl>2018-02-28 12:09:44 +0100
committerWillem Toorop <willem@nlnetlabs.nl>2018-02-28 12:09:44 +0100
commit717ddba4852fc7355a0fd797af5f609b3f7294d4 (patch)
tree63c51ea0bd6d1fed6f16e07c8c50568eaf43f0f0
parentc52c0d81118dd5945ff45178d486b040a99c90a9 (diff)
downloadldns-717ddba4852fc7355a0fd797af5f609b3f7294d4.tar.gz
New compiler warnings
-rw-r--r--examples/ldns-gen-zone.c7
-rw-r--r--examples/ldns-notify.c1
2 files changed, 3 insertions, 5 deletions
diff --git a/examples/ldns-gen-zone.c b/examples/ldns-gen-zone.c
index bd7111a0..01163370 100644
--- a/examples/ldns-gen-zone.c
+++ b/examples/ldns-gen-zone.c
@@ -62,13 +62,10 @@ insert_ds(ldns_rdf *dsowner, uint32_t ttl)
* 2147483647 or 0x7FFFFFFF
*/
snprintf(digeststr, 65,
- "%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x",
+ "%08x%08x%08x%08x%08x%08x%08x%08x",
(unsigned) rand()%RAND_MAX, (unsigned) rand()%RAND_MAX, (unsigned) rand()%RAND_MAX,
(unsigned) rand()%RAND_MAX, (unsigned) rand()%RAND_MAX, (unsigned) rand()%RAND_MAX,
- (unsigned) rand()%RAND_MAX, (unsigned) rand()%RAND_MAX, (unsigned) rand()%RAND_MAX,
- (unsigned) rand()%RAND_MAX, (unsigned) rand()%RAND_MAX, (unsigned) rand()%RAND_MAX,
- (unsigned) rand()%RAND_MAX, (unsigned) rand()%RAND_MAX, (unsigned) rand()%RAND_MAX,
- (unsigned) rand()%RAND_MAX);
+ (unsigned) rand()%RAND_MAX, (unsigned) rand()%RAND_MAX);
dsownerstr = ldns_rdf2str(dsowner);
fprintf(stdout, "%s\t%u\tIN\tDS\t%d %d %d %s\n", dsownerstr, (unsigned) ttl, keytag, ALGO, DIGESTTYPE, digeststr);
}
diff --git a/examples/ldns-notify.c b/examples/ldns-notify.c
index 320dc08c..7d348de7 100644
--- a/examples/ldns-notify.c
+++ b/examples/ldns-notify.c
@@ -262,6 +262,7 @@ main(int argc, char **argv)
break;
case 'v':
version();
+ /* fallthrough */
case 'h':
case '?':
default: