Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/mpl/bind/dist/lib/dns bind: fix workaround for bug ...
details: https://anonhg.NetBSD.org/src/rev/fb08f5cf3248
branches: trunk
changeset: 953860:fb08f5cf3248
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Mar 22 15:12:24 2021 +0000
description:
bind: fix workaround for bug in lint
The previous attempt resulted in a 'syntax error'.
diffstat:
external/mpl/bind/dist/lib/dns/rbtdb.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (28 lines):
diff -r 722b807a13cd -r fb08f5cf3248 external/mpl/bind/dist/lib/dns/rbtdb.c
--- a/external/mpl/bind/dist/lib/dns/rbtdb.c Mon Mar 22 15:05:00 2021 +0000
+++ b/external/mpl/bind/dist/lib/dns/rbtdb.c Mon Mar 22 15:12:24 2021 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index