X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstodr.c;h=1106c90806488f082322c8ad34d0aececa08e59e;hb=be1157fee3451c37508c9ec3b4b4b8603a646c0b;hp=5b26a160ebd09c4b28f42bec1fc4f6ad1469e55c;hpb=029ba3910b555dc57c38fd8d5a27091e59338890;p=yaz-moved-to-github.git diff --git a/test/tstodr.c b/test/tstodr.c index 5b26a16..1106c90 100644 --- a/test/tstodr.c +++ b/test/tstodr.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: tstodr.c,v 1.5 2005-05-26 21:47:16 adam Exp $ + * $Id: tstodr.c,v 1.7 2005-08-22 20:34:23 adam Exp $ * */ #include @@ -22,7 +22,7 @@ void tst_MySequence1(ODR encode, ODR decode) s->first = odr_intdup(encode, 12345); s->second = odr_malloc(encode, sizeof(*s->second)); - s->second->buf = "hello"; + s->second->buf = (unsigned char *) "hello"; s->second->len = 5; s->second->size = 0; s->third = odr_intdup(encode, 1); @@ -53,15 +53,15 @@ void tst_MySequence1(ODR encode, ODR decode) if (!t->fifth || *t->fifth != YC_MySequence_enum1) exit(8); if (!t->myoid) - exit(9); + exit(9); else { - int *myoid = odr_getoidbystr(decode, MYOID); - struct oident *oident; + int *myoid = odr_getoidbystr(decode, MYOID); + struct oident *oident; - if (oid_oidcmp(myoid, t->myoid)) - exit(10); - oident = oid_getentbyoid(t->myoid); + if (oid_oidcmp(myoid, t->myoid)) + exit(10); + oident = oid_getentbyoid(t->myoid); } } @@ -71,7 +71,7 @@ void tst_MySequence2(ODR encode, ODR decode) s->first = 0; /* deliberately miss this .. */ s->second = odr_malloc(encode, sizeof(*s->second)); - s->second->buf = "hello"; + s->second->buf = (unsigned char *) "hello"; s->second->len = 5; s->second->size = 0; s->third = odr_intdup(encode, 1); @@ -128,3 +128,11 @@ int main(int argc, char **argv) odr_destroy(odr_decode); exit(0); } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +