X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fber_int.c;h=ef185aa6b4ac7197e016b61f3ff9bd001027c15f;hp=a134ae2e1b4a716880fe2d0fa8d30854f0ead59d;hb=8356ea58313ee1f350226172cf99bfb0b7c5583c;hpb=6b76baf0fb5d0d437caedd8076f77f372d775758 diff --git a/src/ber_int.c b/src/ber_int.c index a134ae2..ef185aa 100644 --- a/src/ber_int.c +++ b/src/ber_int.c @@ -30,10 +30,10 @@ #include "odr-priv.h" -static int ber_encinteger(ODR o, odr_int_t val); -static int ber_decinteger(const unsigned char *buf, odr_int_t *val, int max); +static int ber_encinteger(ODR o, Odr_int val); +static int ber_decinteger(const unsigned char *buf, Odr_int *val, int max); -int ber_integer(ODR o, odr_int_t *val) +int ber_integer(ODR o, Odr_int *val) { int res; @@ -61,7 +61,7 @@ int ber_integer(ODR o, odr_int_t *val) /* * Returns: number of bytes written or -1 for error (out of bounds). */ -int ber_encinteger(ODR o, odr_int_t val) +int ber_encinteger(ODR o, Odr_int val) { int a, len; union { int i; unsigned char c[sizeof(int)]; } tmp; @@ -82,7 +82,7 @@ int ber_encinteger(ODR o, odr_int_t val) /* * Returns: Number of bytes read or 0 if no match, -1 if error. */ -int ber_decinteger(const unsigned char *buf, odr_int_t *val, int max) +int ber_decinteger(const unsigned char *buf, Odr_int *val, int max) { const unsigned char *b = buf; unsigned char fill;