X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fodr_oid.c;h=cb725e23a1859614a4c245d8dc5f9a409a7cdde6;hb=3c03c66fdcf640bbf4c611a48bf8c74989d077f6;hp=be45098ecf6dd9ff7d530882d5a1efce0cda7483;hpb=db93359f0cbf9a1e9dc81ea05f7b8662f843ae3d;p=yaz-moved-to-github.git diff --git a/src/odr_oid.c b/src/odr_oid.c index be45098..cb725e2 100644 --- a/src/odr_oid.c +++ b/src/odr_oid.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2008 Index Data * See the file LICENSE for details. - * - * $Id: odr_oid.c,v 1.9 2007-03-19 21:08:13 adam Exp $ */ /** * \file odr_oid.c @@ -12,8 +10,8 @@ #include #endif +#include #include "odr-priv.h" -#include /* * Top level oid en/decoder. @@ -52,7 +50,7 @@ int odr_oid(ODR o, Odr_oid **p, int opt, const char *name) return 1; } if (o->direction == ODR_DECODE) - *p = (int *)odr_malloc(o, OID_SIZE * sizeof(**p)); + *p = (Odr_oid *)odr_malloc(o, OID_SIZE * sizeof(**p)); return ber_oidc(o, *p, OID_SIZE); } /*