X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstodr.c;h=1106c90806488f082322c8ad34d0aececa08e59e;hb=be1157fee3451c37508c9ec3b4b4b8603a646c0b;hp=33d366bbbae34c387f69db29218e7025980113ea;hpb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505;p=yaz-moved-to-github.git diff --git a/test/tstodr.c b/test/tstodr.c index 33d366b..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.6 2005-06-25 15:46:07 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); @@ -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);