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
Fix install doc rule for Automake 1.11
[yaz-moved-to-github.git]
/
src
/
ber_int.c
diff --git
a/src/ber_int.c
b/src/ber_int.c
index
13e07cb
..
ef185aa
100644
(file)
--- a/
src/ber_int.c
+++ b/
src/ber_int.c
@@
-30,10
+30,10
@@
#include "odr-priv.h"
#include "odr-priv.h"
-static int ber_encinteger(ODR o, int val);
-static int ber_decinteger(const unsigned char *buf, int *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, int *val)
+int ber_integer(ODR o, Odr_int *val)
{
int res;
{
int res;
@@
-61,7
+61,7
@@
int ber_integer(ODR o, int *val)
/*
* Returns: number of bytes written or -1 for error (out of bounds).
*/
/*
* Returns: number of bytes written or -1 for error (out of bounds).
*/
-int ber_encinteger(ODR o, int val)
+int ber_encinteger(ODR o, Odr_int val)
{
int a, len;
union { int i; unsigned char c[sizeof(int)]; } tmp;
{
int a, len;
union { int i; unsigned char c[sizeof(int)]; } tmp;
@@
-82,7
+82,7
@@
int ber_encinteger(ODR o, int val)
/*
* Returns: Number of bytes read or 0 if no match, -1 if error.
*/
/*
* Returns: Number of bytes read or 0 if no match, -1 if error.
*/
-int ber_decinteger(const unsigned char *buf, int *val, int max)
+int ber_decinteger(const unsigned char *buf, Odr_int *val, int max)
{
const unsigned char *b = buf;
unsigned char fill;
{
const unsigned char *b = buf;
unsigned char fill;