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=029382b6a001d0a12fd5127d3514f29cbf6c1e80;hb=d96575f586fecf1d1eed9ecd7a172c9ccb261ffc;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35 diff --git a/test/test_file_glob.c b/test/test_file_glob.c index 029382b..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-2011 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);