From 8e13fd186da8a4f5c9c37b83ea3e46fb70f1f420 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 5 Apr 2002 12:54:29 +0000 Subject: [PATCH] Using yaz_fclose --- util/charmap.c | 6 +++--- util/zebramap.c | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/util/charmap.c b/util/charmap.c index e6ea960..cbfbf25 100644 --- a/util/charmap.c +++ b/util/charmap.c @@ -3,7 +3,7 @@ * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * - * $Id: charmap.c,v 1.20 2002-04-04 20:50:37 adam Exp $ + * $Id: charmap.c,v 1.21 2002-04-05 12:54:29 adam Exp $ * */ @@ -369,7 +369,7 @@ chrmaptab chrmaptab_create(const char *tabpath, const char *name, int map_only, NMEM nmem; logf (LOG_DEBUG, "maptab %s open", name); - if (!(f = yaz_path_fopen_base(tabpath, name, "r", tabroot))) + if (!(f = yaz_fopen(tabpath, name, "r", tabroot))) { logf(LOG_WARN|LOG_ERRNO, "%s", name); return 0; @@ -511,7 +511,7 @@ chrmaptab chrmaptab_create(const char *tabpath, const char *name, int map_only, logf(LOG_WARN, "Syntax error at '%s' in %s", line, name); } - fclose(f); + yaz_fclose(f); if (errors) { chrmaptab_destroy(res); diff --git a/util/zebramap.c b/util/zebramap.c index 71c715a..239d05d 100644 --- a/util/zebramap.c +++ b/util/zebramap.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zebramap.c,v $ - * Revision 1.24 2002-04-04 20:50:37 adam + * Revision 1.25 2002-04-05 12:54:29 adam + * Using yaz_fclose + * + * Revision 1.24 2002/04/04 20:50:37 adam * Multi register works with record paths and data1 profile path * * Revision 1.23 2001/11/15 08:41:24 adam @@ -157,7 +160,7 @@ static void zebra_map_read (ZebraMaps zms, const char *name) int lineno = 0; struct zebra_map **zm = 0, *zp; - if (!(f = yaz_path_fopen_base(zms->tabpath, name, "r", zms->tabroot))) + if (!(f = yaz_fopen(zms->tabpath, name, "r", zms->tabroot))) { logf(LOG_WARN|LOG_ERRNO, "%s", name); return ; @@ -267,7 +270,7 @@ static void zebra_map_read (ZebraMaps zms, const char *name) } if (zm) (*zm)->next = NULL; - fclose (f); + yaz_fclose (f); for (zp = zms->map_list; zp; zp = zp->next) zms->lookup_array[zp->reg_id] = zp; -- 1.7.10.4