X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fodr.c;h=3208e7a80ec189d0921cd2f148126b8064d8ded7;hb=475b8ce3047108dcf7a87251733299077d7001e7;hp=c249c934312556b7c2097e0fd79d02a6e6ac1123;hpb=28231d4c83085109d800c6689ae778cc041c51e7;p=yaz-moved-to-github.git diff --git a/odr/odr.c b/odr/odr.c index c249c93..3208e7a 100644 --- a/odr/odr.c +++ b/odr/odr.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: odr.c,v $ - * Revision 1.26 1997-11-24 11:33:56 adam + * Revision 1.27 1998-02-11 11:53:34 adam + * Changed code so that it compiles as C++. + * + * Revision 1.26 1997/11/24 11:33:56 adam * Using function odr_nullval() instead of global ODR_NULLVAL when * appropriate. * @@ -145,11 +148,11 @@ void odr_setprint(ODR o, FILE *file) ODR odr_createmem(int direction) { - struct odr *r; + ODR r; logf (LOG_DEBUG, "odr_createmem dir=%d", direction); - if (!(r = xmalloc(sizeof(*r)))) + if (!(r = (ODR)xmalloc(sizeof(*r)))) return 0; r->direction = direction; r->print = stderr;