X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=isamc%2Fisamc.c;h=6f91fa9bcc0a27dac9acc01495fd96d0366c6fa7;hp=bc81c16db76c147e05df80151f22b7e9fbf1bd1b;hb=ae2d0647bd3a555df77397b6c2f9c129fda0733a;hpb=dbd6f3a01791401472b07250bf35dcbc3ead4f92 diff --git a/isamc/isamc.c b/isamc/isamc.c index bc81c16..6f91fa9 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.23 2003-06-23 15:36:11 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 Index Data Aps This file is part of the Zebra server. @@ -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[] = { @@ -72,7 +72,7 @@ void isc_getmethod (ISAMC_M m) 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 +81,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);