X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fodr_util.c;h=5da40887aca8897f6527612a27f14353a8afc41a;hb=29a22396d7d7b1219f5b83c35983c8fb1cd79e8f;hp=26a672c1fdb5e393d4e5161056f355b7e7177da6;hpb=ec1f815d5348cd21e393f76bc212c910c34bbc45;p=yaz-moved-to-github.git diff --git a/odr/odr_util.c b/odr/odr_util.c index 26a672c..5da4088 100644 --- a/odr/odr_util.c +++ b/odr/odr_util.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: odr_util.c,v 1.23 2003-05-20 19:55:30 adam Exp $ + * $Id: odr_util.c,v 1.25 2003-05-24 19:20:14 adam Exp $ */ #if HAVE_CONFIG_H #include @@ -87,9 +87,8 @@ int odr_missing(ODR o, int opt, const char *name) return 0; if (!opt) { - printf ("odr_missing set error : %s\n", name); - odr_seterror(o, OREQUIRED, 55); - odr_setaddinfo(o, name); + odr_seterror(o, OREQUIRED, 53); + odr_setelement(o, name); } return opt; }