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
Renew testing certificate (PEM)
[yaz-moved-to-github.git]
/
ztest
/
read-grs.c
diff --git
a/ztest/read-grs.c
b/ztest/read-grs.c
index
4821738
..
b2f63b7
100644
(file)
--- a/
ztest/read-grs.c
+++ b/
ztest/read-grs.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) 1995-2012 Index Data
* See the file LICENSE for details.
*/
/** \file
* See the file LICENSE for details.
*/
/** \file
@@
-10,7
+10,6
@@
#endif
#include <stdio.h>
#endif
#include <stdio.h>
-#include <ctype.h>
#include <stdlib.h>
#include <yaz/proto.h>
#include <stdlib.h>
#include <yaz/proto.h>
@@
-34,7
+33,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(*(unsigned char *) buf))
+ while (*buf && yaz_isspace(*buf))
buf++;
if (!*buf || *buf == '#')
continue;
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++;
if (!(buf = strchr(buf, ')')))
return 0;
buf++;
- while (*buf && isspace(*(unsigned char *) buf))
+ while (*buf && yaz_isspace(*buf))
buf++;
if (!*buf)
return 0;
buf++;
if (!*buf)
return 0;