Avoid signed char subscript
[yaz-moved-to-github.git] / ztest / ztest.c
index ba2731b..c7f7fdb 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1995-2004, Index Data.
  * See the file LICENSE for details.
  *
- * $Id: ztest.c,v 1.66 2004-11-16 17:08:11 heikki Exp $
+ * $Id: ztest.c,v 1.68 2004-12-30 00:18:04 adam Exp $
  */
 
 /*
@@ -41,7 +41,7 @@ int ztest_search (void *handle, bend_search_rr *rr)
     /* if database is stop, stop this process.. For debugging only. */
     if (!yaz_matchstr (rr->basenames[0], "stop"))
     {
-       nmem_print_list_l(LOG_LOG);
+       nmem_print_list_l(YLOG_LOG);
         exit(0);
     }
 #endif
@@ -404,7 +404,7 @@ int ztest_esrequest (void *handle, bend_esrequest_rr *rr)
     }
     else
     {
-        yaz_log (LOG_WARN, "Unknown Extended Service(%d)",
+        yaz_log (YLOG_WARN, "Unknown Extended Service(%d)",
                 rr->esr->taskSpecificParameters->which);
        
     }
@@ -568,7 +568,7 @@ int ztest_scan(void *handle, bend_scan_rr *q)
     memcpy(term, q->term->term->u.general->buf, q->term->term->u.general->len);
     term[q->term->term->u.general->len] = '\0';
     for (p = term; *p; p++)
-       if (islower(*p))
+       if (islower(*(unsigned char *) p))
            *p = toupper(*p);
 
     fseek(f, 0, SEEK_SET);