X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftstnmem.c;h=72677443be0dfeed9677bb9c33b00e72dd193fca;hp=4d51ed70e83df1961c0a79482322bcc9b8bcd96d;hb=88d3bedf772316f87e1996f655ccf8d1e2589755;hpb=dc4414aeda179bc8ebe3fc46ac53e4a24d265d16 diff --git a/test/tstnmem.c b/test/tstnmem.c index 4d51ed7..7267744 100644 --- a/test/tstnmem.c +++ b/test/tstnmem.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. - * - * $Id: tstnmem.c,v 1.8 2007-04-17 20:26:18 adam Exp $ */ #if HAVE_CONFIG_H @@ -28,7 +26,7 @@ void tst(void) 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; @@ -42,7 +40,7 @@ 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); @@ -57,6 +55,7 @@ int main (int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab