]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
Revert "kres: added support for NULL type"
authorMarek Vavruša <mvavrusa@cloudflare.com>
Thu, 21 Dec 2017 06:43:53 +0000 (22:43 -0800)
committerMarek Vavruša <mvavrusa@cloudflare.com>
Thu, 21 Dec 2017 06:43:53 +0000 (22:43 -0800)
This reverts commit 0a891eb671538708bf489b603ddf71cb12a061f4.

daemon/lua/kres.lua
tests/config/basic_test.lua

index 8972160a87e21baefd14100a176a121d0ea9a99d..99f9ffd85ada0d5c8492814f03491ab25465621e 100644 (file)
@@ -45,7 +45,6 @@ local const_class = {
        ANY        = 255,
 }
 local const_type = {
-       NULL       =   0,
        A          =   1,
        NS         =   2,
        MD         =   3,
index c0a43f37e2d114e0e2e74fcd121770842b65adf4..4dae147d0d65a23e215eedcc4bde3dab12ea3c3a 100644 (file)
@@ -1,7 +1,6 @@
 -- test if constants work properly
 local function test_constants()
        same(kres.class.IN, 1, 'class constants work')
-       same(kres.type.NULL, 0, 'NULL type works')
        same(kres.type.NS, 2, 'record type constants work')
        same(kres.type.TYPE2, 2, 'unnamed record type constants work')
        same(kres.type.BADTYPE, nil, 'non-existent type constants are checked')