-/* $Id: tstcharmap.c,v 1.5 2006-08-14 10:40:34 adam Exp $
+/* $Id: tstcharmap.c,v 1.6 2006-10-29 17:20:02 adam Exp $
Copyright (C) 1995-2006
Index Data ApS
#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 */,