tno unions - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 53b8d079db09b05853e861dea9a98d96249ff946
(DIR) parent d27ee153adb118ffe68a7a97cd7a218ca800033a
(HTM) Author: rsc <devnull@localhost>
Date: Thu, 30 Mar 2006 15:04:45 +0000
no unions
Diffstat:
M src/cmd/ndb/dns.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
(DIR) diff --git a/src/cmd/ndb/dns.h b/src/cmd/ndb/dns.h
t@@ -86,8 +86,8 @@ enum
/* length of domain name hash table */
HTLEN= 4*1024,
- RRmagic= 0xdeadbabe,
- DNmagic= 0xa110a110,
+#define RRmagic 0xdeadbabe
+#define DNmagic 0xa110a110
/* parallelism */
Maxactive= 32,
t@@ -197,7 +197,7 @@ struct RR
uchar db; /* from database */
uchar cached; /* rr in cache */
ulong marker; /* used locally when scanning rrlists */
- union {
+/* union { */
DN *negsoaowner; /* soa for cached negative response */
DN *host; /* hostname - soa, cname, mb, md, mf, mx, ns */
DN *cpu; /* cpu type - hinfo */
t@@ -206,8 +206,8 @@ struct RR
DN *rp; /* rp arg - rp */
int cruftlen;
ulong arg0;
- };
- union {
+/* }; */
+/* union { */
int negrcode; /* response code for cached negative response */
DN *rmb; /* responsible maibox - minfo, soa, rp */
DN *ptr; /* pointer to domain name - ptr */
t@@ -215,15 +215,15 @@ struct RR
ulong pref; /* preference value - mx */
ulong local; /* ns served from local database - ns */
ulong arg1;
- };
- union {
+/* }; */
+/* union { */
SOA *soa; /* soa timers - soa */
Key *key;
Cert *cert;
Sig *sig;
Null *null;
Txt *txt;
- };
+/* }; */
};
/*