X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=ztest%2Fread-grs.c;h=02e67bdb69c9846e25be6a08797507cef1f4ce28;hp=162f9ab4302422c502f9badd1cea39ded141cebe;hb=5541b773e8ee0e5c086946016c060f6f629bd410;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35 diff --git a/ztest/read-grs.c b/ztest/read-grs.c index 162f9ab..02e67bd 100644 --- a/ztest/read-grs.c +++ b/ztest/read-grs.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ /** \file @@ -10,7 +10,6 @@ #endif #include -#include #include #include @@ -34,7 +33,7 @@ static Z_GenericRecord *read_grs1(FILE *f, ODR o) while (fgets(buf = line, 512, f)) { - while (*buf && isspace(*(unsigned char *) buf)) + while (*buf && yaz_isspace(*buf)) buf++; if (!*buf || *buf == '#') continue; @@ -52,7 +51,7 @@ static Z_GenericRecord *read_grs1(FILE *f, ODR o) if (!(buf = strchr(buf, ')'))) return 0; buf++; - while (*buf && isspace(*(unsigned char *) buf)) + while (*buf && yaz_isspace(*buf)) buf++; if (!*buf) return 0;