X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftst_record_conv.c;h=33ede53b269829815b3e2432eca7788b6ca60ed8;hp=42518b707a67bba226829512cc1748e58011c341;hb=ed31c923f03ec124060972f5351b8b33e07a2e13;hpb=e6fc0b7b23620cd04801667b1921384f56a42fdb diff --git a/test/tst_record_conv.c b/test/tst_record_conv.c index 42518b7..33ede53 100644 --- a/test/tst_record_conv.c +++ b/test/tst_record_conv.c @@ -1,5 +1,5 @@ /* 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 @@ -7,7 +7,6 @@ #include #include #include -#include #if HAVE_CONFIG_H #include @@ -182,10 +181,12 @@ static int conv_convert_test(yaz_record_conv_t p, 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 { @@ -332,7 +333,7 @@ static void tst_convert2(void) 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 @@ -346,6 +347,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab