X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fres-test.c;h=ae1c2da19313759f7f62e5ea3dbd7366d357c1c4;hb=707cc9ebfa7f462ec58a31cfbad4c1a09fecfa00;hp=e345a7313739e80d0adf27c31be4729122050c61;hpb=896c0427df9d8eff5de6a1735dcd992e067df844;p=idzebra-moved-to-github.git diff --git a/util/res-test.c b/util/res-test.c index e345a73..ae1c2da 100644 --- a/util/res-test.c +++ b/util/res-test.c @@ -1,6 +1,6 @@ -/* $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 +/* $Id: res-test.c,v 1.13 2007-01-15 15:10:26 adam Exp $ + Copyright (C) 1995-2007 + Index Data ApS This file is part of the Zebra server. @@ -15,9 +15,9 @@ 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 + */ @@ -28,7 +28,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 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,11 @@ int main(int argc, char **argv) res_close (res); return 0; } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +