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
No unsigned char's in public API (except for iconv)
[yaz-moved-to-github.git]
/
src
/
odr_oct.c
diff --git
a/src/odr_oct.c
b/src/odr_oct.c
index
fc06519
..
a64648a
100644
(file)
--- a/
src/odr_oct.c
+++ b/
src/odr_oct.c
@@
-86,7
+86,7
@@
int odr_cstring(ODR o, char **p, int opt, const char *name)
t = (Odr_oct *)odr_malloc(o, sizeof(Odr_oct)); /* wrapper for octstring */
if (o->direction == ODR_ENCODE)
{
t = (Odr_oct *)odr_malloc(o, sizeof(Odr_oct)); /* wrapper for octstring */
if (o->direction == ODR_ENCODE)
{
- t->buf = (unsigned char *) *p;
+ t->buf = *p;
t->len = strlen(*p);
#if OCT_SIZE
t->size = t->len;
t->len = strlen(*p);
#if OCT_SIZE
t->size = t->len;
@@
-149,7
+149,7
@@
int odr_iconv_string(ODR o, char **p, int opt, const char *name)
char *outbuf = (char *) odr_malloc (o, outleft);
size_t ret;
char *outbuf = (char *) odr_malloc (o, outleft);
size_t ret;
- t->buf = (unsigned char *) outbuf;
+ t->buf = outbuf;
ret = yaz_iconv(o->op->iconv_handle, &inbuf, &inleft,
&outbuf, &outleft);
ret = yaz_iconv(o->op->iconv_handle, &inbuf, &inleft,
&outbuf, &outleft);
@@
-173,7
+173,7
@@
int odr_iconv_string(ODR o, char **p, int opt, const char *name)
}
if (!t->buf)
{
}
if (!t->buf)
{
- t->buf = (unsigned char *) *p;
+ t->buf = *p;
t->len = strlen(*p);
#if OCT_SIZE
t->size = t->len;
t->len = strlen(*p);
#if OCT_SIZE
t->size = t->len;