X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=ztest%2Fread-grs.c;h=1726ef6abc83249af2885dd8f8edee20716098f3;hp=4821738b44bf779310a89673912490868fe9849b;hb=dc86a5103817732735d2591d3775114a86de94ae;hpb=d0e351c12fff564d876958e860338d43716dc269 diff --git a/ztest/read-grs.c b/ztest/read-grs.c index 4821738..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-2010 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;