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
/
ber_bit.c
diff --git
a/src/ber_bit.c
b/src/ber_bit.c
index
edce71a
..
b2242c4
100644
(file)
--- a/
src/ber_bit.c
+++ b/
src/ber_bit.c
@@
-1,9
+1,9
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) 1995-2013 Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
-/**
+/**
* \file ber_bit.c
* \brief Implements BER BITSTRING encoding and decoding.
*
* \file ber_bit.c
* \brief Implements BER BITSTRING encoding and decoding.
*
@@
-20,7
+20,7
@@
int ber_bitstring(ODR o, Odr_bitmask *p, int cons)
{
int res, len;
int ber_bitstring(ODR o, Odr_bitmask *p, int cons)
{
int res, len;
- const unsigned char *base;
+ const char *base;
switch (o->direction)
{
switch (o->direction)
{
@@
-70,12
+70,12
@@
int ber_bitstring(ODR o, Odr_bitmask *p, int cons)
return 0;
if (p->top < 0)
return 1;
return 0;
if (p->top < 0)
return 1;
- if (odr_write(o, p->bits, p->top + 1) < 0)
+ if (odr_write2(o, p->bits, p->top + 1) < 0)
return 0;
return 1;
case ODR_PRINT:
return 1;
return 0;
return 1;
case ODR_PRINT:
return 1;
- default:
+ default:
odr_seterror(o, OOTHER, 8);
return 0;
}
odr_seterror(o, OOTHER, 8);
return 0;
}