* 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 <stdlib.h>
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);
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);
}
}
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);
odr_destroy(odr_decode);
exit(0);
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+