projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zebra_register_check fixes
[idzebra-moved-to-github.git]
/
index
/
zebraidx.c
diff --git
a/index/zebraidx.c
b/index/zebraidx.c
index
3291a79
..
3494e19
100644
(file)
--- a/
index/zebraidx.c
+++ b/
index/zebraidx.c
@@
-177,14
+177,9
@@
int main(int argc, char **argv)
{
show_filters(zs);
}
{
show_filters(zs);
}
- else if (!strcmp(arg, "check0"))
+ else if (!strncmp(arg, "check", 5))
{
{
- if (zebra_register_check(zh, 0) != ZEBRA_OK)
- yaz_log(YLOG_WARN, "register check failed");
- }
- else if (!strcmp(arg, "check1") || !strcmp(arg, "check"))
- {
- if (zebra_register_check(zh, 1) != ZEBRA_OK)
+ if (zebra_register_check(zh, 10) != ZEBRA_OK)
yaz_log(YLOG_WARN, "register check failed");
}
else
yaz_log(YLOG_WARN, "register check failed");
}
else