X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Fcheck_res.c;h=28ee1b95dda7438e7aae73d5f9be669eddd1aecf;hp=6c2b99578e0646baba93bc31cf0f99209884092e;hb=27bdd6aa26843aeac89f635ed495996088d8e8aa;hpb=a66b7d79383ae700f3358731eecfe2aafed0e90d diff --git a/index/check_res.c b/index/check_res.c index 6c2b995..28ee1b9 100644 --- a/index/check_res.c +++ b/index/check_res.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2010 Index Data + Copyright (C) 2004-2013 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 @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -28,7 +31,7 @@ int zebra_check_res(Res res) { int errors = 0; Res v = res_open(0, 0); - + res_add(v, "attset", ""); res_add(v, "chdir", ""); res_add(v, "dbaccess", ""); @@ -71,9 +74,9 @@ int zebra_check_res(Res res) res_add(v, "openRW", "p"); res_add(v, "facetNumRecs", ""); res_add(v, "facetMaxChunks", ""); - + errors = res_check(res, v); - + res_close(v); return errors; }