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/3ff59c25eba0
branches: trunk
changeset: 1019867:3ff59c25eba0
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 e81eb2b638a6 -r 3ff59c25eba0 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