Add rankstatic to win makefile
[idzebra-moved-to-github.git] / index / zrpn.c
index 4b451c4..135f68b 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: zrpn.c,v 1.202 2005-06-23 06:45:46 adam Exp $
+/* $Id: zrpn.c,v 1.204 2005-08-22 09:04:18 adam Exp $
    Copyright (C) 1995-2005
    Index Data ApS
 
@@ -236,7 +236,7 @@ static void add_isam_p(const char *name, const char *info,
         int set, use;
         char term_tmp[IT_MAX_WORD];
         int su_code = 0;
-        int len = key_SU_decode (&su_code, name);
+        int len = key_SU_decode (&su_code, (const unsigned char *) name);
         
         zebra_term_untrans  (p->zh, p->reg_type, term_tmp, name+len+1);
         yaz_log(log_level_rpn, "grep: %d %c %s", su_code, name[len], term_tmp);
@@ -1021,7 +1021,7 @@ static ZEBRA_RES term_limits_APT(ZebraHandle zh,
        /* 0 is the same as global limit */
        *hits_limit_value = zh->approx_limit;
     }
-    yaz_log(YLOG_LOG, "term_limits_APT ref_id=%s limit=" ZINT_FORMAT,
+    yaz_log(YLOG_DEBUG, "term_limits_APT ref_id=%s limit=" ZINT_FORMAT,
            *term_ref_id_str ? *term_ref_id_str : "none",
            *hits_limit_value);
     return ZEBRA_OK;
@@ -1390,7 +1390,7 @@ static ZEBRA_RES zapt_term_to_utf8(ZebraHandle zh, Z_AttributesPlusTerm *zapt,
     case Z_Term_general:
         if (zh->iconv_to_utf8 != 0)
         {
-            char *inbuf = term->u.general->buf;
+            char *inbuf = (char *) term->u.general->buf;
             size_t inleft = term->u.general->len;
             char *outbuf = termz;
             size_t outleft = IT_MAX_WORD-1;