X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstnmem.c;h=f47392947ca2e4e98fb0516c66d022cb855b9a87;hb=8b373aba10e874dc00f5020cb40f490dbb930a88;hp=000c7d24b0b8200fe4922021aa0809e6f03dfac4;hpb=06ae818deffa84ec4bc1308051ef411845dd4ce5;p=yaz-moved-to-github.git diff --git a/test/tstnmem.c b/test/tstnmem.c index 000c7d2..f473929 100644 --- a/test/tstnmem.c +++ b/test/tstnmem.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2005, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2008 Index Data * See the file LICENSE for details. - * - * $Id: tstnmem.c,v 1.6 2006-01-29 21:59:13 adam Exp $ */ #if HAVE_CONFIG_H @@ -23,13 +21,12 @@ void tst(void) int j; char *cp; - nmem_init(); n = nmem_create(); YAZ_CHECK(n); for (j = 1; j<500; j++) { - cp = nmem_malloc(n, j); + cp = (char *) nmem_malloc(n, j); YAZ_CHECK(cp); if (sizeof(long) >= j) *(long*) cp = 123L; @@ -43,11 +40,10 @@ void tst(void) for (j = 2000; j<20000; j+= 2000) { - cp = nmem_malloc(n, j); + cp = (char *) nmem_malloc(n, j); YAZ_CHECK(cp); } nmem_destroy(n); - nmem_exit(); } int main (int argc, char **argv)