X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=odr%2Fodr_int.c;h=a7d1eef43e2c44153fd388b950b8889b9a7f819b;hp=cad4add8d772264450cf297b2dae96833ff061cd;hb=21ea17f766bb492a93154ec7b242653fa37dec91;hpb=63cafe41a93427118959a74201b3e331169a71d9 diff --git a/odr/odr_int.c b/odr/odr_int.c index cad4add..a7d1eef 100644 --- a/odr/odr_int.c +++ b/odr/odr_int.c @@ -1,10 +1,16 @@ /* - * Copyright (c) 1995, Index Data + * Copyright (c) 1995-1999, Index Data * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: odr_int.c,v $ - * Revision 1.10 1995-09-29 17:12:24 quinn + * Revision 1.12 1999-01-08 11:23:28 adam + * Added const modifier to some of the BER/ODR encoding routines. + * + * 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 @@ -37,7 +43,6 @@ */ #include -#include /* * Top level integer en/decoder. @@ -69,6 +74,6 @@ int 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); }