X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ztest%2Fztest.c;h=3c96d910da5fb20903a6b55b5f0046f12c7ffb92;hb=a6f6d77b75984f05b97942cfcca1b64d661fc76a;hp=2ef89218166cc5425366976abae78b2ba831255f;hpb=9629dc2f718a92b415653d494527ee2c3b0640a2;p=yaz-moved-to-github.git diff --git a/ztest/ztest.c b/ztest/ztest.c index 2ef8921..3c96d91 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -1,16 +1,18 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. */ - /** \file * \brief yaz-ztest Generic Frontend Server */ +#if HAVE_CONFIG_H +#include +#endif + #include #include #include -#include #if HAVE_SYS_TIME_H #include @@ -1007,8 +1009,8 @@ int ztest_scan(void *handle, bend_scan_rr *q) strcpy(term, "0"); for (p = term; *p; p++) - if (islower(*(unsigned char *) p)) - *p = toupper(*p); + if (yaz_islower(*p)) + *p = yaz_toupper(*p); fseek(f, 0, SEEK_SET); q->num_entries = 0;