X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=isamc%2Fisamc.c;h=e63e03e768d47c1e9a51037fc1f5355485a85ab1;hb=668b136879471079ce03b26981a5fd1b3a210bc1;hp=bc81c16db76c147e05df80151f22b7e9fbf1bd1b;hpb=896c0427df9d8eff5de6a1735dcd992e067df844;p=idzebra-moved-to-github.git diff --git a/isamc/isamc.c b/isamc/isamc.c index bc81c16..e63e03e 100644 --- a/isamc/isamc.c +++ b/isamc/isamc.c @@ -1,5 +1,5 @@ -/* $Id: isamc.c,v 1.22 2002-08-02 19:26:56 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 +/* $Id: isamc.c,v 1.24.2.1 2006-08-14 10:39:10 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 Index Data Aps This file is part of the Zebra server. @@ -15,9 +15,9 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with Zebra; see the file LICENSE.zebra. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ @@ -42,7 +42,7 @@ static void init_fc (ISAMC is, int cat); #define SMALL_TEST 0 -void isc_getmethod (ISAMC_M m) +void isc_getmethod (ISAMC_M *m) { static struct ISAMC_filecat_s def_cat[] = { @@ -66,13 +66,14 @@ void isc_getmethod (ISAMC_M m) m->code_reset = NULL; m->compare_item = NULL; + m->log_item = NULL; m->debug = 1; m->max_blocks_mem = 10; } -ISAMC isc_open (BFiles bfs, const char *name, int writeflag, ISAMC_M method) +ISAMC isc_open (BFiles bfs, const char *name, int writeflag, ISAMC_M *method) { ISAMC is; ISAMC_filecat filecat; @@ -81,7 +82,7 @@ ISAMC isc_open (BFiles bfs, const char *name, int writeflag, ISAMC_M method) is = (ISAMC) xmalloc (sizeof(*is)); - is->method = (ISAMC_M) xmalloc (sizeof(*is->method)); + is->method = (ISAMC_M *) xmalloc (sizeof(*is->method)); memcpy (is->method, method, sizeof(*method)); filecat = is->method->filecat; assert (filecat);