X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=ztest%2Fread-grs.c;h=1726ef6abc83249af2885dd8f8edee20716098f3;hp=162f9ab4302422c502f9badd1cea39ded141cebe;hb=4e500dea9790b5ff9ea4fbb3d150c358e3bd2cab;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35 diff --git a/ztest/read-grs.c b/ztest/read-grs.c index 162f9ab..1726ef6 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) 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;