X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fcheck_res.c;h=28ee1b95dda7438e7aae73d5f9be669eddd1aecf;hb=bdf0f406d66c4702c3b8942d1bb33a9212283138;hp=7b41f3a7540b5db94a129cfe1bff31d41a5f2a5e;hpb=c9074a8094fd1a1b8cde9355bc75e0812e5ab88b;p=idzebra-moved-to-github.git diff --git a/index/check_res.c b/index/check_res.c index 7b41f3a..28ee1b9 100644 --- a/index/check_res.c +++ b/index/check_res.c @@ -1,8 +1,5 @@ -/* $Id: check_res.c,v 1.9 2008-03-05 09:21:48 adam Exp $ - Copyright (C) 1995-2007 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + 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 @@ -20,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -31,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", ""); @@ -74,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; } @@ -84,6 +84,7 @@ int zebra_check_res(Res res) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab