summaryrefslogtreecommitdiff
path: root/sites/pmikkelsen.com/_files/ndb.diff
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2024-04-07 13:25:49 +0200
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2024-04-07 13:25:49 +0200
commit9cb56dabb676391a9382731347e8d2b07b9437a5 (patch)
tree95302f041497679202722d9896ec1386bed2d86c /sites/pmikkelsen.com/_files/ndb.diff
parent0a37a1cc5909e11098963267edc9654b85e7ce16 (diff)
big cleanup
Diffstat (limited to 'sites/pmikkelsen.com/_files/ndb.diff')
-rw-r--r--sites/pmikkelsen.com/_files/ndb.diff70
1 files changed, 0 insertions, 70 deletions
diff --git a/sites/pmikkelsen.com/_files/ndb.diff b/sites/pmikkelsen.com/_files/ndb.diff
deleted file mode 100644
index b752cd4..0000000
--- a/sites/pmikkelsen.com/_files/ndb.diff
+++ /dev/null
@@ -1,70 +0,0 @@
-diff -r 4adb989bc93e sys/src/cmd/ndb/dblookup.c
---- a/sys/src/cmd/ndb/dblookup.c Tue Nov 03 20:47:14 2020 +0100
-+++ b/sys/src/cmd/ndb/dblookup.c Sun Nov 29 16:42:47 2020 +0100
-@@ -40,7 +40,7 @@
- static RR* srvrr(Ndbtuple*, Ndbtuple*);
- static RR* txtrr(Ndbtuple*, Ndbtuple*);
-
--static int implemented[Tall] =
-+static int implemented[Tcaa] =
- {
- [Ta] 1,
- [Taaaa] 1,
-@@ -118,7 +118,7 @@
- rp = nil;
-
- if(type == Tall){
-- for (type = Ta; type < Tall; type++)
-+ for (type = Ta; type < Tcaa; type++)
- if(implemented[type])
- rrcat(&rp, dblookup(name, class, type, auth, ttl));
-
-diff -r 4adb989bc93e sys/src/cmd/ndb/dn.c
---- a/sys/src/cmd/ndb/dn.c Tue Nov 03 20:47:14 2020 +0100
-+++ b/sys/src/cmd/ndb/dn.c Sun Nov 29 16:42:47 2020 +0100
-@@ -97,6 +97,7 @@
- [Tmailb] "mailb",
- [Tmaila] "maila",
- [Tall] "all",
-+[Tcaa] "caa",
- 0,
- };
-
-@@ -1042,7 +1043,7 @@
- {
- int i;
-
-- for(i = 0; i <= Tall; i++)
-+ for(i = 0; i <= Tcaa; i++)
- if(rrtname[i] && strcmp(rrtname[i], atype) == 0)
- return i;
-
-@@ -1061,7 +1062,7 @@
- int
- rrsupported(int type)
- {
-- if(type < 0 || type >Tall)
-+ if(type < 0 || type >Tcaa)
- return 0;
- return rrtname[type] != nil;
- }
-@@ -1891,7 +1892,7 @@
- char *t;
-
- t = nil;
-- if(type >= 0 && type <= Tall)
-+ if(type >= 0 && type <= Tcaa)
- t = rrtname[type];
- if(t==nil){
- snprint(buf, len, "%d", type);
-diff -r 4adb989bc93e sys/src/cmd/ndb/dns.h
---- a/sys/src/cmd/ndb/dns.h Tue Nov 03 20:47:14 2020 +0100
-+++ b/sys/src/cmd/ndb/dns.h Sun Nov 29 16:42:47 2020 +0100
-@@ -71,6 +71,7 @@
- Tmailb= 253, /* { Tmb, Tmg, Tmr } */
- Tmaila= 254, /* obsolete */
- Tall= 255, /* all records */
-+ Tcaa= 257, /* Certification authority restriction */
-
- /* classes */
- Csym= 0, /* internal symbols */