X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstlog.c;h=96cd95b74fa4953ca2deb0444bba869ae6adf0b6;hb=67471e87c134f2503546cdd250cd169b7d43d566;hp=dcb87d3309481cca880e9d6fd9f819f90c441d5f;hpb=56f715bb23c31ea1f8a551e7f1f9b58a10bafbad;p=yaz-moved-to-github.git diff --git a/test/tstlog.c b/test/tstlog.c index dcb87d3..96cd95b 100644 --- a/test/tstlog.c +++ b/test/tstlog.c @@ -2,10 +2,11 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: tstlog.c,v 1.9 2006-03-21 12:32:16 adam Exp $ + * $Id: tstlog.c,v 1.11 2006-10-04 07:32:36 adam Exp $ * */ #include +#include #include #include #include @@ -26,11 +27,11 @@ int main(int argc, char **argv) int number = 1; unsigned int wait_between_log = 0; - while ((ret = options("f:v:l:m:n:s:w:Hh", argv, argc, &arg)) != -2) + while ((ret = options("f:v:l:m:n:r:w:Hh", argv, argc, &arg)) != -2) { switch (ret) { - case 's': + case 'r': yaz_log_init_max_size(atoi(arg)); break; case 'f': @@ -55,7 +56,7 @@ int main(int argc, char **argv) wait_between_log = atoi(arg); break; case 'H': - log_event_start(hook_func, 0); + yaz_log_set_handler(hook_func, 0); break; case 0: for (i = 0; i