X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=util%2Fres-test.c;h=9099937eac5d26c9159aa96dac4502ec986f3712;hp=e345a7313739e80d0adf27c31be4729122050c61;hb=c97718edd01f7d1813edbf94c58b93a747143311;hpb=896c0427df9d8eff5de6a1735dcd992e067df844 diff --git a/util/res-test.c b/util/res-test.c index e345a73..9099937 100644 --- a/util/res-test.c +++ b/util/res-test.c @@ -1,8 +1,5 @@ -/* $Id: res-test.c,v 1.8 2002-08-02 19:26:57 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 - Index Data Aps - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + 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 @@ -15,20 +12,23 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with Zebra; see the file LICENSE.zebra. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ +#if HAVE_CONFIG_H +#include +#endif #include #include static void res_print (const char *name, const char *value) { - logf (LOG_LOG, "%s=%s", name, value); + yaz_log (YLOG_LOG, "%s=%s", name, value); } int main(int argc, char **argv) @@ -41,24 +41,24 @@ int main(int argc, char **argv) Res res; int write_flag = 0; - log_init (LOG_DEFAULT_LEVEL, prog, NULL); + log_init (YLOG_DEFAULT_LEVEL, prog, NULL); while ((ret = options ("wp:v", argv, argc, &arg)) != -2) if (ret == 0) resfile = arg; else if (ret == 'v') - log_init (LOG_ALL, prog, NULL); + log_init (YLOG_ALL, prog, NULL); else if (ret == 'p') prefix = arg; else if (ret == 'w') write_flag = 1; else { - logf (LOG_FATAL, "Unknown option '-%s'", arg); + yaz_log (YLOG_FATAL, "Unknown option '-%s'", arg); exit (1); } if (!resfile) { - logf (LOG_FATAL, "No resource file given."); + yaz_log (YLOG_FATAL, "No resource file given."); exit (1); } res = res_open (resfile); @@ -68,3 +68,12 @@ int main(int argc, char **argv) res_close (res); return 0; } +/* + * Local variables: + * c-basic-offset: 4 + * c-file-style: "Stroustrup" + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +