X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftest_odr.c;h=1ff12edd37c1dac18668a8c6a5a7af24967c7ab6;hb=0efa8f2d1b7c2b5d881f0a1e9aee32939f6aad83;hp=6ebd750491e3474bdd3acc64f22e25dfb0a0d46e;hpb=cabcc223cd47503763e7c42969e3be30c58276af;p=yaz-moved-to-github.git diff --git a/test/test_odr.c b/test/test_odr.c index 6ebd750..1ff12ed 100644 --- a/test/test_odr.c +++ b/test/test_odr.c @@ -25,11 +25,8 @@ void tst_MySequence1(ODR encode, ODR decode) YAZ_CHECK(s); s->first = odr_intdup(encode, 12345); s->second = (Odr_oct *) odr_malloc(encode, sizeof(*s->second)); - s->second->buf = (unsigned char *) "hello"; + s->second->buf = (char *) "hello"; s->second->len = 5; -#if OCT_SIZE - s->second->size = 0; -#endif s->third = odr_booldup(encode, 1); s->fourth = odr_nullval(); s->fifth = odr_intdup(encode, YC_MySequence_enum1); @@ -82,11 +79,8 @@ void tst_MySequence2(ODR encode, ODR decode) YAZ_CHECK(s); s->first = 0; /* deliberately miss this .. */ s->second = (Odr_oct *) odr_malloc(encode, sizeof(*s->second)); - s->second->buf = (unsigned char *) "hello"; + s->second->buf = (char *) "hello"; s->second->len = 5; -#if OCT_SIZE - s->second->size = 0; -#endif s->third = odr_booldup(encode, 1); s->fourth = odr_nullval(); s->fifth = odr_intdup(encode, YC_MySequence_enum1);