X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fodr_int.c;h=8cfab5fe6ebda2e7995f86f674c97e108c0662fc;hb=1ff2e27ec44aebe0c9f6cc5a26ea19cd6e97b9e8;hp=2f9308c6303ed6bde80a3d85920b4c5d4049afa5;hpb=9c459af695605b44a044ad206562818be10034f1;p=yaz-moved-to-github.git diff --git a/odr/odr_int.c b/odr/odr_int.c index 2f9308c..8cfab5f 100644 --- a/odr/odr_int.c +++ b/odr/odr_int.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: odr_int.c,v $ - * Revision 1.9 1995-09-29 17:01:50 quinn + * Revision 1.11 1998-02-11 11:53:34 adam + * Changed code so that it compiles as C++. + * + * Revision 1.10 1995/09/29 17:12:24 quinn + * Smallish + * + * Revision 1.9 1995/09/29 17:01:50 quinn * More Windows work * * Revision 1.8 1995/09/27 15:02:59 quinn @@ -40,7 +46,7 @@ * Top level integer en/decoder. * Returns 1 on success, 0 on error. */ -int MDF odr_integer(ODR o, int **p, int opt) +int odr_integer(ODR o, int **p, int opt) { int res, cons = 0; @@ -66,6 +72,6 @@ int MDF odr_integer(ODR o, int **p, int opt) return 0; } if (o->direction == ODR_DECODE) - *p = odr_malloc(o, sizeof(int)); + *p = (int *)odr_malloc(o, sizeof(int)); return ber_integer(o, *p); }