projects
/
yazpp-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
239a863
)
Remove unused variables
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 11 Aug 2005 18:53:01 +0000
(18:53 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 11 Aug 2005 18:53:01 +0000
(18:53 +0000)
zlint/test-init-02.cpp
patch
|
blob
|
history
zlint/test-init-03.cpp
patch
|
blob
|
history
zlint/test-init-04.cpp
patch
|
blob
|
history
zlint/test-init-05.cpp
patch
|
blob
|
history
zlint/test-init-06.cpp
patch
|
blob
|
history
zlint/test-init-07.cpp
patch
|
blob
|
history
zlint/test-init-08.cpp
patch
|
blob
|
history
zlint/test-search-01.cpp
patch
|
blob
|
history
diff --git
a/zlint/test-init-02.cpp
b/zlint/test-init-02.cpp
index
8820d4e
..
c8a5c50
100644
(file)
--- a/
zlint/test-init-02.cpp
+++ b/
zlint/test-init-02.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
* 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>
*/
#include <yaz/log.h>
@@
-45,7
+45,6
@@
Zlint_code Zlint_test_init_02::recv_gdu(Zlint *z, Z_GDU *gdu)
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
int ver = z->initResponseGetVersion(init);
{
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();
if (ver != 2)
z->msg_check_fail("got version %d, expected 2", ver);
z->msg_check_ok();
diff --git
a/zlint/test-init-03.cpp
b/zlint/test-init-03.cpp
index
40c1218
..
3f76c46
100644
(file)
--- a/
zlint/test-init-03.cpp
+++ b/
zlint/test-init-03.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
* 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>
*/
#include <yaz/log.h>
@@
-46,7
+46,6
@@
Zlint_code Zlint_test_init_03::recv_gdu(Zlint *z, Z_GDU *gdu)
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
int ver = z->initResponseGetVersion(init);
{
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);
if (ver < 2 || ver > 5)
z->msg_check_fail("%sgot version %d, expected 2-5", ver);
diff --git
a/zlint/test-init-04.cpp
b/zlint/test-init-04.cpp
index
297396d
..
c12bdd8
100644
(file)
--- a/
zlint/test-init-04.cpp
+++ b/
zlint/test-init-04.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
* 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>
*/
#include <yaz/log.h>
@@
-46,8
+46,6
@@
Zlint_code Zlint_test_init_04::recv_gdu(Zlint *z, Z_GDU *gdu)
gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse)
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
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");
if (!init->referenceId)
z->msg_check_fail("missing referenceID from init response");
diff --git
a/zlint/test-init-05.cpp
b/zlint/test-init-05.cpp
index
59ae15c
..
3028da4
100644
(file)
--- a/
zlint/test-init-05.cpp
+++ b/
zlint/test-init-05.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
* 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>
*/
#include <yaz/log.h>
@@
-66,7
+66,6
@@
Zlint_code Zlint_test_init_05::recv_gdu(Zlint *z, Z_GDU *gdu)
gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse)
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
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)
int result = init->result ? *init->result : 0;
if (m_init_response_no == 0)
diff --git
a/zlint/test-init-06.cpp
b/zlint/test-init-06.cpp
index
a2956b3
..
a79e16a
100644
(file)
--- a/
zlint/test-init-06.cpp
+++ b/
zlint/test-init-06.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
* 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>
*/
#include <yaz/log.h>
@@
-47,8
+47,6
@@
Zlint_code Zlint_test_init_06::recv_gdu(Zlint *z, Z_GDU *gdu)
gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse)
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
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)
{
if (init->options)
{
diff --git
a/zlint/test-init-07.cpp
b/zlint/test-init-07.cpp
index
eb72b30
..
fb91d37
100644
(file)
--- a/
zlint/test-init-07.cpp
+++ b/
zlint/test-init-07.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
* 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>
*/
#include <yaz/log.h>
@@
-75,8
+75,6
@@
Zlint_code Zlint_test_init_07::recv_gdu(Zlint *z, Z_GDU *gdu)
gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse)
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
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))
{
if (ODR_MASK_GET(init->options, Z_Options_negotiationModel))
{
diff --git
a/zlint/test-init-08.cpp
b/zlint/test-init-08.cpp
index
63b001b
..
9d99711
100644
(file)
--- a/
zlint/test-init-08.cpp
+++ b/
zlint/test-init-08.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
* 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>
*/
#include <yaz/log.h>
@@
-49,8
+49,6
@@
Zlint_code Zlint_test_init_08::recv_gdu(Zlint *z, Z_GDU *gdu)
gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse)
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
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");
if (m_no * m_no * 100000 + 2000 < *init->maximumRecordSize)
z->msg_check_fail("maximumRecordSize bigger than proposed size");
diff --git
a/zlint/test-search-01.cpp
b/zlint/test-search-01.cpp
index
f537bc3
..
7f3adab
100644
(file)
--- a/
zlint/test-search-01.cpp
+++ b/
zlint/test-search-01.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
* 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>
*/
#include <yaz/log.h>
@@
-173,7
+173,6
@@
Zlint_code Zlint_test_search_01::recv_gdu(Zlint *z, Z_GDU *gdu)
gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse)
{
Z_InitResponse *init = gdu->u.z3950->u.initResponse;
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)
{
int result = init->result ? *init->result : 0;
if (!result)
{