aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ndb
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-03-30 15:04:45 +0000
committerrsc <devnull@localhost>2006-03-30 15:04:45 +0000
commit53b8d079db09b05853e861dea9a98d96249ff946 (patch)
treed1cb32432b408f3a572d688f87665d9e9a056bc7 /src/cmd/ndb
parentd27ee153adb118ffe68a7a97cd7a218ca800033a (diff)
downloadplan9port-53b8d079db09b05853e861dea9a98d96249ff946.tar.gz
plan9port-53b8d079db09b05853e861dea9a98d96249ff946.tar.bz2
plan9port-53b8d079db09b05853e861dea9a98d96249ff946.zip
no unions
Diffstat (limited to 'src/cmd/ndb')
-rwxr-xr-xsrc/cmd/ndb/dns.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cmd/ndb/dns.h b/src/cmd/ndb/dns.h
index e08f1b5e..6db0c230 100755
--- a/src/cmd/ndb/dns.h
+++ b/src/cmd/ndb/dns.h
@@ -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,
@@ -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 */
@@ -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 */
@@ -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;
- };
+/* }; */
};
/*