/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2008 Index Data
+ * Copyright (C) 1995-2010 Index Data
* See the file LICENSE for details.
*/
#include <yaz/record_conv.h>
#include <yaz/wrbuf.h>
#include <string.h>
#include <yaz/log.h>
-#include <yaz/libxml2_error.h>
#if HAVE_CONFIG_H
#include <config.h>
else if (strcmp(output_expect_record, wrbuf_cstr(output_record)))
{
ret = 0;
- printf("got-output_record len=%d: %s\n",
- wrbuf_len(output_record),wrbuf_cstr(output_record));
- printf("output_expect_record len=%d %s\n",
- strlen(output_expect_record), output_expect_record);
+ printf("got-output_record len=%ld: %s\n",
+ (long) wrbuf_len(output_record),
+ wrbuf_cstr(output_record));
+ printf("output_expect_record len=%ld %s\n",
+ (long) strlen(output_expect_record),
+ output_expect_record);
}
else
{
int main(int argc, char **argv)
{
YAZ_CHECK_INIT(argc, argv);
- libxml2_error_to_yazlog(0 /* disable log */, 0);
+ yaz_log_xml_errors(0, 0 /* disable log */);
#if YAZ_HAVE_XML2
tst_configure();
#endif
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab