projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SRW Scan support in yaz-client and Generic Frontend Server.
[yaz-moved-to-github.git]
/
ztest
/
read-grs.c
diff --git
a/ztest/read-grs.c
b/ztest/read-grs.c
index
9cc9c48
..
18b668f
100644
(file)
--- a/
ztest/read-grs.c
+++ b/
ztest/read-grs.c
@@
-1,8
+1,8
@@
/*
/*
- * Copyright (c) 1995-2002, Index Data.
+ * Copyright (c) 1995-2003, Index Data.
* See the file LICENSE for details.
*
* See the file LICENSE for details.
*
- * $Id: read-grs.c,v 1.7 2002-03-18 21:33:48 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 (fgets(buf = line, 512, f))
{
- while (*buf && isspace(*buf))
+ while (*buf && isspace(*(unsigned char *) buf))
buf++;
if (!*buf || *buf == '#')
continue;
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)
{
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')
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++;
if (!(buf = strchr(buf, ')')))
return 0;
buf++;
- while (*buf && isspace(*buf))
+ while (*buf && isspace(*(unsigned char *) buf))
buf++;
if (!*buf)
return 0;
buf++;
if (!*buf)
return 0;