X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftstodr.c;h=06c28eab419c5c83a7e7cbaef980bd4689dfdf59;hp=4becfe0f6df36a9dc6ca70a15dd716d170f2502b;hb=653561fa749dbd5c0a438f249f2927ea33d5843c;hpb=bf95c509245f5cb4025ef2db348d5f7ace3b5994 diff --git a/test/tstodr.c b/test/tstodr.c index 4becfe0..06c28ea 100644 --- a/test/tstodr.c +++ b/test/tstodr.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 @@ -25,7 +25,7 @@ void tst_MySequence1(ODR encode, ODR decode) s->second->buf = (unsigned char *) "hello"; s->second->len = 5; s->second->size = 0; - s->third = odr_intdup(encode, 1); + s->third = odr_booldup(encode, 1); s->fourth = odr_nullval(); s->fifth = odr_intdup(encode, YC_MySequence_enum1); @@ -80,7 +80,7 @@ void tst_MySequence2(ODR encode, ODR decode) s->second->buf = (unsigned char *) "hello"; s->second->len = 5; s->second->size = 0; - s->third = odr_intdup(encode, 1); + s->third = odr_booldup(encode, 1); s->fourth = odr_nullval(); s->fifth = odr_intdup(encode, YC_MySequence_enum1); s->myoid = odr_getoidbystr(encode, MYOID); @@ -105,13 +105,13 @@ void tst_MySequence3(ODR encode, ODR decode) Yc_MySequence *t; srand(123); - for (i = 0; i<1000; i++) + for (i = 0; i < 1000; i++) { int j; - for (j = 0; j