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
Call autoheader when needed
[yaz-moved-to-github.git]
/
test
/
tst_retrieval.c
diff --git
a/test/tst_retrieval.c
b/test/tst_retrieval.c
index
3e5cd56
..
cb561e4
100644
(file)
--- a/
test/tst_retrieval.c
+++ b/
test/tst_retrieval.c
@@
-1,9
+1,6
@@
-/*
- * Copyright (C) 2005-2006, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2008 Index Data
* See the file LICENSE for details.
* See the file LICENSE for details.
- *
- * $Id: tst_retrieval.c,v 1.8 2006-12-12 10:41:39 marc Exp $
- *
*/
#include <yaz/retrieval.h>
#include <yaz/test.h>
*/
#include <yaz/retrieval.h>
#include <yaz/test.h>
@@
-76,12
+73,12
@@
int conv_configure_test(const char *xmlstring, const char *expect_error,
if (!p)
{
if (!p)
{
- if (expect_error && !strcmp(wrbuf_buf(w), expect_error))
+ if (expect_error && !strcmp(wrbuf_cstr(w), expect_error))
ret = 1;
else
{
ret = 0;
ret = 1;
else
{
ret = 0;
- printf("%.*s\n", wrbuf_len(w), wrbuf_buf(w));
+ printf("%s\n", wrbuf_cstr(w));
}
}
else
}
}
else
@@
-100,7
+97,7
@@
int conv_configure_test(const char *xmlstring, const char *expect_error,
ret = 1;
}
}
ret = 1;
}
}
- wrbuf_free(w, 1);
+ wrbuf_destroy(w);
return ret;
}
return ret;
}