X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zlint%2Ftest-scan-01.cpp;h=d4eeef4ac9ee196bf9bb419499570ab9e8e5a60f;hb=d62e0baee8ee3cccced41746ef09fc3e01f401d5;hp=3033f3947919fbb7e2e1753b92638838a1bd7382;hpb=7411ed6df7fc0b535f83503f73d70e80f390e295;p=yazpp-moved-to-github.git diff --git a/zlint/test-scan-01.cpp b/zlint/test-scan-01.cpp index 3033f39..d4eeef4 100644 --- a/zlint/test-scan-01.cpp +++ b/zlint/test-scan-01.cpp @@ -1,10 +1,11 @@ -/* - * Copyright (c) 2004, Index Data. +/* This file is part of the yazpp toolkit. + * Copyright (C) Index Data and Mike Taylor * See the file LICENSE for details. - * - * $Id: test-scan-01.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $ */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -36,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) { @@ -60,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; @@ -132,6 +133,7 @@ Zlint_code Zlint_test_scan_01::recv_fail(Zlint *z, int reason) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab