Module Name: src
Committed By: rillig
Date: Mon Mar 22 15:12:24 UTC 2021
Modified Files:
src/external/mpl/bind/dist/lib/dns: rbtdb.c
Log Message:
bind: fix workaround for bug in lint
The previous attempt resulted in a 'syntax error'.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/mpl/bind/dist/lib/dns/rbtdb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/mpl/bind/dist/lib/dns/rbtdb.c
diff -u src/external/mpl/bind/dist/lib/dns/rbtdb.c:1.9 src/external/mpl/bind/dist/lib/dns/rbtdb.c:1.10
--- src/external/mpl/bind/dist/lib/dns/rbtdb.c:1.9 Fri Feb 19 16:42:16 2021
+++ src/external/mpl/bind/dist/lib/dns/rbtdb.c Mon Mar 22 15:12:24 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: rbtdb.c,v 1.9 2021/02/19 16:42:16 christos Exp $ */
+/* $NetBSD: rbtdb.c,v 1.10 2021/03/22 15:12:24 rillig Exp $ */
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@@ -892,13 +892,13 @@ update_rrsetstats(dns_rbtdb_t *rbtdb, co
dns_rdatastatstype_t statattributes = 0;
dns_rdatastatstype_t base = 0;
dns_rdatastatstype_t type;
- rdatasetheader_t *header =
-#ifndef __lint__ // XXX: lint broken
- &(rdatasetheader_t){
+#ifdef __lint__ // XXX: bug in lint; see msg_171.c 1.3
+ rdatasetheader_t *header;
+#else
+ rdatasetheader_t *header = &(rdatasetheader_t){
.type = htype, .attributes = ATOMIC_VAR_INIT(hattributes)
- }
+ };
#endif
- ;
if (!do_stats(header)) {
return;