From: Adam Dickmeiss Date: Mon, 22 Aug 2005 08:17:01 +0000 (+0000) Subject: Added include of yaz/log.h X-Git-Tag: before.bug.529~340 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=dc58eff985d645a38b3945aa248a4e2b8070ab98 Added include of yaz/log.h --- 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()