-/* $Id: tstcharmap.c,v 1.5 2006-08-14 10:40:34 adam Exp $
- Copyright (C) 1995-2006
+/* $Id: tstcharmap.c,v 1.7 2007-01-15 15:10:26 adam Exp $
+ Copyright (C) 1995-2007
Index Data ApS
This file is part of the Zebra server.
#include <yaz/log.h>
/* use env srcdir as base directory - or current directory if unset */
-const char *get_srcdir()
+const char *get_srcdir(void)
{
const char *srcdir = getenv("srcdir");
if (!srcdir || ! *srcdir)
}
-void tst1()
+void tst1(void)
{
/* open existing map chrmaptab.chr */
chrmaptab tab = chrmaptab_create(get_srcdir() /* tabpath */,
chrmaptab_destroy(tab);
}
-void tst2()
+void tst2(void)
{
/* open non-existing nonexist.chr */
chrmaptab tab = chrmaptab_create(get_srcdir() /* tabpath */,