From dc58eff985d645a38b3945aa248a4e2b8070ab98 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 22 Aug 2005 08:17:01 +0000 Subject: [PATCH] Added include of yaz/log.h --- util/charmap.c | 7 ++++--- util/tstcharmap.c | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/util/charmap.c b/util/charmap.c index f5f6207..cb9d0b4 100644 --- a/util/charmap.c +++ b/util/charmap.c @@ -1,4 +1,4 @@ -/* $Id: charmap.c,v 1.38 2005-06-15 21:31:45 adam Exp $ +/* $Id: charmap.c,v 1.39 2005-08-22 08:17:01 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -101,11 +101,12 @@ static chr_t_entry *set_map_string(chr_t_entry *root, NMEM nmem, } if (!len) { - if (!root->target || !root->target[0] || strcmp(root->target[0], to)) + if (!root->target || !root->target[0] || + strcmp((const char *) root->target[0], to)) { if (from_0 && root->target && root->target[0] && root->target[0][0] && - strcmp (root->target[0], CHR_UNKNOWN)) + strcmp((const char *) root->target[0], CHR_UNKNOWN)) { yaz_log (YLOG_WARN, "duplicate entry for charmap from '%s'", from_0); diff --git a/util/tstcharmap.c b/util/tstcharmap.c index 0b2248e..e152d9d 100644 --- a/util/tstcharmap.c +++ b/util/tstcharmap.c @@ -1,4 +1,4 @@ -/* $Id: tstcharmap.c,v 1.2 2005-08-19 09:20:21 adam Exp $ +/* $Id: tstcharmap.c,v 1.3 2005-08-22 08:17:01 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -24,6 +24,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include #include +#include /* use env srcdir as base directory - or current directory if unset */ const char *get_srcdir() -- 1.7.10.4