projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update RPM requires
[yaz-moved-to-github.git]
/
test
/
test_odr.c
diff --git
a/test/test_odr.c
b/test/test_odr.c
index
bfc237d
..
7f5ef9e
100644
(file)
--- a/
test/test_odr.c
+++ b/
test/test_odr.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
@@
-25,9
+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));
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;
s->second->len = 5;
- s->second->size = 0;
s->third = odr_booldup(encode, 1);
s->fourth = odr_nullval();
s->fifth = odr_intdup(encode, YC_MySequence_enum1);
s->third = odr_booldup(encode, 1);
s->fourth = odr_nullval();
s->fifth = odr_intdup(encode, YC_MySequence_enum1);
@@
-80,9
+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));
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;
s->second->len = 5;
- s->second->size = 0;
s->third = odr_booldup(encode, 1);
s->fourth = odr_nullval();
s->fifth = odr_intdup(encode, YC_MySequence_enum1);
s->third = odr_booldup(encode, 1);
s->fourth = odr_nullval();
s->fifth = odr_intdup(encode, YC_MySequence_enum1);