X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_odr.c;h=bfc237d6a45bc5d106c5fb6b1ba2f48a1fadbaa3;hp=5865f0acb74b981d424f24720258055f535be0eb;hb=3d95738e1464a966faae513cbaff87e9f9ff2b47;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35 diff --git a/test/test_odr.c b/test/test_odr.c index 5865f0a..bfc237d 100644 --- a/test/test_odr.c +++ b/test/test_odr.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ #if HAVE_CONFIG_H @@ -31,14 +31,14 @@ void tst_MySequence1(ODR encode, ODR decode) s->third = odr_booldup(encode, 1); s->fourth = odr_nullval(); s->fifth = odr_intdup(encode, YC_MySequence_enum1); - + s->myoid = odr_getoidbystr(decode, MYOID); ret = yc_MySequence(encode, &s, 0, 0); YAZ_CHECK(ret); if (!ret) return; - + ber_buf = odr_getbuf(encode, &ber_len, 0); odr_setbuf(decode, ber_buf, ber_len, 0); @@ -130,7 +130,7 @@ static void tst_berint32(ODR encode, ODR decode) Odr_int val; Odr_int ret_val; int r; - + val = 0; odr_reset(encode); r = ber_integer(encode, &val); @@ -253,7 +253,7 @@ static void tst_berint64(ODR encode, ODR decode) Odr_int val; Odr_int ret_val; int r; - + val = (Odr_int) 2 * 2147483648UL; /* 2^32 */ odr_reset(encode); r = ber_integer(encode, &val); @@ -340,7 +340,7 @@ void do_nothing_useful(Odr_int value) Odr_int *valp, *resvalp; char *bufferp; int len; - + /* allocate streams */ if (!(encode = odr_createmem(ODR_ENCODE))) return;