X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ztest%2Fread-grs.c;h=18b668f56564c7df4a264b1e26131ec7f89f2b90;hb=d35622cea47fdf58f47d31023e28e49eaf1ecb47;hp=2bc09f9db286a86731fde19a9541bf29b23f3f33;hpb=4d531a1a9131d69c3b6c27fbac42837e22cff61c;p=yaz-moved-to-github.git diff --git a/ztest/read-grs.c b/ztest/read-grs.c index 2bc09f9..18b668f 100644 --- a/ztest/read-grs.c +++ b/ztest/read-grs.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data. * See the file LICENSE for details. * - * $Id: read-grs.c,v 1.8 2003-01-06 08:20:29 adam Exp $ + * $Id: read-grs.c,v 1.11 2004-12-30 00:18:04 adam Exp $ */ /* @@ -32,7 +32,7 @@ static Z_GenericRecord *read_grs1(FILE *f, ODR o) while (fgets(buf = line, 512, f)) { - while (*buf && isspace(*buf)) + while (*buf && isspace(*(unsigned char *) buf)) buf++; if (!*buf || *buf == '#') continue; @@ -42,7 +42,7 @@ static Z_GenericRecord *read_grs1(FILE *f, ODR o) return r; if (sscanf(buf, "(%d,%[^)])", &type, value) != 2) { - yaz_log(LOG_WARN, "Bad data in '%s'", buf); + yaz_log(YLOG_WARN, "Bad data in '%s'", buf); return 0; } if (!type && *value == '0') @@ -50,7 +50,7 @@ static Z_GenericRecord *read_grs1(FILE *f, ODR o) if (!(buf = strchr(buf, ')'))) return 0; buf++; - while (*buf && isspace(*buf)) + while (*buf && isspace(*(unsigned char *) buf)) buf++; if (!*buf) return 0;