X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_file_glob.c;h=7c8ceb8ad5a9a7021e73cec25c6ff6782e6cdaa7;hp=a679a6826378bca4e9a0a3eeb1db384db7eb4ca0;hb=28c5fe25e891098bcf5f18dfd0e3abe729dc340f;hpb=3224954c29109b736fb03f9b486fc5953223120c diff --git a/test/test_file_glob.c b/test/test_file_glob.c index a679a68..7c8ceb8 100644 --- a/test/test_file_glob.c +++ b/test/test_file_glob.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ @@ -10,7 +10,6 @@ #include #include #include -#include #include #include @@ -33,7 +32,7 @@ void tst_with_path(const char *tpath) yaz_file_globfree(&glob_res); } -static check_file(const char *got, const char *expect) +static int check_file(const char *got, const char *expect) { const char *f = got; size_t l_match = strlen(expect); @@ -49,7 +48,7 @@ void tst(void) int ret; WRBUF tpath = wrbuf_alloc(); const char *srcdir = getenv("srcdir"); - + if (srcdir) { wrbuf_puts(tpath, srcdir);