X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=zlint%2Ftest-scan-01.cpp;h=b697b0c8cdbfeddfed364c651e5eeea04888fc73;hp=cc50e5ab0cf9d07c3d4645a4f6f6117e77958a70;hb=82d0b6ce2accdbe9987d0b8b4e6e818514455e22;hpb=8353663886b90d762d43790780be6cb58fb93c8a diff --git a/zlint/test-scan-01.cpp b/zlint/test-scan-01.cpp index cc50e5a..b697b0c 100644 --- a/zlint/test-scan-01.cpp +++ b/zlint/test-scan-01.cpp @@ -1,8 +1,11 @@ /* This file is part of the yazpp toolkit. - * Copyright (C) 1998-2011 Index Data and Mike Taylor + * Copyright (C) Index Data * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -34,7 +37,7 @@ Zlint_code Zlint_test_scan_01::init(Zlint *z) ODR_MASK_SET(init->protocolVersion, Z_ProtocolVersion_3); ODR_MASK_SET(init->options, Z_Options_namedResultSets); ODR_MASK_SET(init->options, Z_Options_scan); - + int r = z->send_Z_PDU(apdu, &len); if (r < 0) { @@ -58,9 +61,9 @@ Zlint_code Zlint_test_scan_01::sendTest(Zlint *z) z->odr_encode(), &sr->attributeSet, try_scan[m_scan_no]); - + z->getDatabase(&sr->databaseNames, &sr->num_databaseNames); - + yaz_pqf_destroy (pqf_parser); z->send_Z_PDU(apdu, &len); return TEST_CONTINUE;