* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: test-init-02.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $
+ * $Id: test-init-02.cpp,v 1.5 2005-08-11 18:53:01 adam Exp $
*/
#include <yaz/log.h>
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
int ver = z->initResponseGetVersion(init);
- int result = init->result ? *init->result : 0;
if (ver != 2)
z->msg_check_fail("got version %d, expected 2", ver);
z->msg_check_ok();
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: test-init-03.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $
+ * $Id: test-init-03.cpp,v 1.5 2005-08-11 18:53:01 adam Exp $
*/
#include <yaz/log.h>
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
int ver = z->initResponseGetVersion(init);
- int result = init->result ? *init->result : 0;
if (ver < 2 || ver > 5)
z->msg_check_fail("%sgot version %d, expected 2-5", ver);
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: test-init-04.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $
+ * $Id: test-init-04.cpp,v 1.5 2005-08-11 18:53:01 adam Exp $
*/
#include <yaz/log.h>
gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse)
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
- int ver = z->initResponseGetVersion(init);
- int result = init->result ? *init->result : 0;
if (!init->referenceId)
z->msg_check_fail("missing referenceID from init response");
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: test-init-05.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $
+ * $Id: test-init-05.cpp,v 1.5 2005-08-11 18:53:01 adam Exp $
*/
#include <yaz/log.h>
gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse)
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
- int ver = z->initResponseGetVersion(init);
int result = init->result ? *init->result : 0;
if (m_init_response_no == 0)
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: test-init-06.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $
+ * $Id: test-init-06.cpp,v 1.5 2005-08-11 18:53:01 adam Exp $
*/
#include <yaz/log.h>
gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse)
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
- int ver = z->initResponseGetVersion(init);
- int result = init->result ? *init->result : 0;
if (init->options)
{
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: test-init-07.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $
+ * $Id: test-init-07.cpp,v 1.5 2005-08-11 18:53:01 adam Exp $
*/
#include <yaz/log.h>
gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse)
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
- int ver = z->initResponseGetVersion(init);
- int result = init->result ? *init->result : 0;
if (ODR_MASK_GET(init->options, Z_Options_negotiationModel))
{
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: test-init-08.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $
+ * $Id: test-init-08.cpp,v 1.5 2005-08-11 18:53:01 adam Exp $
*/
#include <yaz/log.h>
gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse)
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
- int ver = z->initResponseGetVersion(init);
- int result = init->result ? *init->result : 0;
if (m_no * m_no * 100000 + 2000 < *init->maximumRecordSize)
z->msg_check_fail("maximumRecordSize bigger than proposed size");
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: test-search-01.cpp,v 1.5 2005-06-25 15:53:21 adam Exp $
+ * $Id: test-search-01.cpp,v 1.6 2005-08-11 18:53:01 adam Exp $
*/
#include <yaz/log.h>
gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse)
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
- int ver = z->initResponseGetVersion(init);
int result = init->result ? *init->result : 0;
if (!result)
{