X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fodr_any.c;h=d1d6a71bad5ffaec45987ecf7cc6fc97851f21be;hp=96e72b9ee70c9b3f889efa1cbebc1a739a096199;hb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505;hpb=67002f49611adb64993391b0cbf6c235f18080a4 diff --git a/src/odr_any.c b/src/odr_any.c index 96e72b9..d1d6a71 100644 --- a/src/odr_any.c +++ b/src/odr_any.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: odr_any.c,v 1.4 2005-01-15 19:47:14 adam Exp $ + * $Id: odr_any.c,v 1.5 2005-06-25 15:46:04 adam Exp $ */ /** @@ -25,17 +25,25 @@ int odr_any(ODR o, Odr_any **p, int opt, const char *name) { if (o->error) - return 0; + return 0; if (o->direction == ODR_PRINT) { - odr_prname(o, name); - odr_printf(o, "ANY (len=%d)\n", (*p)->len); - return 1; + odr_prname(o, name); + odr_printf(o, "ANY (len=%d)\n", (*p)->len); + return 1; } if (o->direction == ODR_DECODE) - *p = (Odr_oct *)odr_malloc(o, sizeof(**p)); + *p = (Odr_oct *)odr_malloc(o, sizeof(**p)); if (ber_any(o, p)) - return 1; + return 1; *p = 0; return odr_missing(o, opt, name); } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +