X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftest.c;h=c186bc5c11627eac5be5564061ad3b3e218ca3d3;hb=4e3f7be8266559e07dc01ae5d6aba31d30b8bd44;hp=7803177c84995f657fd7fed485375b111d675d4b;hpb=5ed3b6561d90d13f64be7f9ae8beaf4a0b3f8e32;p=yaz-moved-to-github.git diff --git a/src/test.c b/src/test.c index 7803177..c186bc5 100644 --- a/src/test.c +++ b/src/test.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2005, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2009 Index Data * See the file LICENSE for details. - * - * $Id: test.c,v 1.10 2006-07-07 13:39:04 heikki Exp $ */ /** \file test.c @@ -31,7 +29,7 @@ static int test_verbose = 1; static const char *test_prog = 0; static int log_tests = 0; -static FILE *get_file() +static FILE *get_file(void) { if (test_fout) return test_fout; @@ -193,7 +191,7 @@ void yaz_check_print1(int type, const char *file, int line, } if (printit) { - fprintf(get_file(), "%s:%d %s: ", file, line, msg); + fprintf(get_file(), "%s:%d: %s: ", file, line, msg); fprintf(get_file(), "%s\n", expr); } if (log_tests) @@ -212,6 +210,7 @@ int yaz_test_get_verbosity() /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab