projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update RPM requires
[yaz-moved-to-github.git]
/
test
/
test_file_glob.c
diff --git
a/test/test_file_glob.c
b/test/test_file_glob.c
index
029382b
..
ec39065
100644
(file)
--- a/
test/test_file_glob.c
+++ b/
test/test_file_glob.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-10,7
+10,6
@@
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
-#include <ctype.h>
#include <yaz/file_glob.h>
#include <yaz/test.h>
#include <yaz/file_glob.h>
#include <yaz/test.h>
@@
-33,7
+32,7
@@
void tst_with_path(const char *tpath)
yaz_file_globfree(&glob_res);
}
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);
{
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");
int ret;
WRBUF tpath = wrbuf_alloc();
const char *srcdir = getenv("srcdir");
-
+
if (srcdir)
{
wrbuf_puts(tpath, srcdir);
if (srcdir)
{
wrbuf_puts(tpath, srcdir);