X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraidx.c;h=3494e19f6f60bfc77f644665d8961b05675ba656;hb=5a0bd8219f5265caf462c669ba9557b8d7fc2aed;hp=a9efb403f78d0e17dc95a1c3cc3d637f44500492;hpb=33ae4eec22d719299cb2c4e2a3853bde0c1f5794;p=idzebra-moved-to-github.git diff --git a/index/zebraidx.c b/index/zebraidx.c index a9efb40..3494e19 100644 --- a/index/zebraidx.c +++ b/index/zebraidx.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2010 Index Data + Copyright (C) 1994-2011 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -177,14 +177,9 @@ int main(int argc, char **argv) { 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