X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=isams%2Fisams.c;h=a8c765c824678a48135f755be7d810bcc9bf893e;hp=f3583cc57e423d20eecf90367cff217146827978;hb=ae2d0647bd3a555df77397b6c2f9c129fda0733a;hpb=dbd6f3a01791401472b07250bf35dcbc3ead4f92 diff --git a/isams/isams.c b/isams/isams.c index f3583cc..a8c765c 100644 --- a/isams/isams.c +++ b/isams/isams.c @@ -1,5 +1,5 @@ -/* $Id: isams.c,v 1.3 2002-08-02 19:26:56 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 +/* $Id: isams.c,v 1.4 2003-06-23 15:36:12 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 Index Data Aps This file is part of the Zebra server. @@ -37,7 +37,7 @@ typedef struct { typedef unsigned ISAMS_BLOCK_SIZE; struct ISAMS_s { - ISAMS_M method; + ISAMS_M *method; ISAMS_head head; ISAMS_head head_old; char *merge_buf; @@ -57,7 +57,7 @@ struct ISAMS_PP_s { int numRead; }; -void isams_getmethod (ISAMS_M m) +void isams_getmethod (ISAMS_M *m) { m->code_start = NULL; m->code_item = NULL; @@ -70,11 +70,11 @@ void isams_getmethod (ISAMS_M m) } ISAMS isams_open (BFiles bfs, const char *name, int writeflag, - ISAMS_M method) + ISAMS_M *method) { ISAMS is = (ISAMS) xmalloc (sizeof(*is)); - is->method = (ISAMS_M) xmalloc (sizeof(*is->method)); + is->method = (ISAMS_M *) xmalloc (sizeof(*is->method)); memcpy (is->method, method, sizeof(*method)); is->block_size = is->method->block_size; is->debug = is->method->debug;