From 4e4d4121b5f664c358daa0ce5b7388f0251d0b4c Mon Sep 17 00:00:00 2001 From: erana Date: Mon, 6 Mar 2017 07:08:07 +0100 Subject: [PATCH] db with prim hash - bufgix --- s48/hawk-dns-server/db.scm | 2 +- s48/hawk-dns-server/db.scm~ | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/s48/hawk-dns-server/db.scm b/s48/hawk-dns-server/db.scm index 1684004..ce604a6 100644 --- a/s48/hawk-dns-server/db.scm +++ b/s48/hawk-dns-server/db.scm @@ -42,7 +42,7 @@ (set! *prime (getprime-rec *prime))) (define (getprime-rec prime) - (if (not (and (/ prime 2) (/ prime 3) (/ prime 5) (/ prime 7) (/ prime 10))) + (if (= 1 (not (and (/ prime 2) (/ prime 3) (/ prime 5) (/ prime 7) (/ prime 10)))) (getpreime-rec (+ prime 1)))) (define (integer->ascii diff --git a/s48/hawk-dns-server/db.scm~ b/s48/hawk-dns-server/db.scm~ index de3e26e..1684004 100644 --- a/s48/hawk-dns-server/db.scm~ +++ b/s48/hawk-dns-server/db.scm~ @@ -12,7 +12,7 @@ ;;THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - +;; <--- (define (make-db) (let ((*db '())