From 167608ee8ee54b884d210e6f026a60a415aa313e Mon Sep 17 00:00:00 2001 Message-Id: <167608ee8ee54b884d210e6f026a60a415aa313e.1715099440.git.mdw@distorted.org.uk> From: Mark Wooding Date: Fri, 15 Jun 2007 12:53:35 +0100 Subject: [PATCH] zone: Simplify zone-write. Organization: Straylight/Edgeware From: Mark Wooding Use ecase instead of case, and merge NS handling with PTR and CNAME. --- zone.lisp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/zone.lisp b/zone.lisp index 5546b8a..d3b2c4e 100644 --- a/zone.lisp +++ b/zone.lisp @@ -748,14 +748,11 @@ (defun zone-write (zone &optional (stream *standard-output*)) (soa-expire soa) (soa-min-ttl soa))) (dolist (zr (zone-records zone)) - (case (zr-type zr) + (ecase (zr-type zr) (:a (printrec zr) (format stream "~A~%" (ipaddr-string (zr-data zr)))) - ((:ptr :cname) - (printrec zr) - (format stream "~A~%" (fix-host (zr-data zr)))) - (:ns + ((:ptr :cname :ns) (printrec zr) (format stream "~A~%" (fix-host (zr-data zr)))) (:mx -- [mdw]