X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=data1%2Fd1_varset.c;h=bb874e8820955a8fccdbde2ecbd514f44e2c7eac;hp=e2d51892e8ba732145f2df00c8f99cd1a4bbf0bd;hb=e2e073b5c947e996304ed7d577497af5e9a879ee;hpb=97a7adeb9e5059463f039495cc01cfa448463a27 diff --git a/data1/d1_varset.c b/data1/d1_varset.c index e2d5189..bb874e8 100644 --- a/data1/d1_varset.c +++ b/data1/d1_varset.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1995-2008 Index Data + Copyright (C) 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 @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -74,7 +77,7 @@ data1_varset *data1_read_varset (data1_handle dh, const char *file) if (!strcmp(argv[0], "class")) { data1_varclass *r; - + if (argc != 3) { yaz_log(YLOG_WARN, "%s:%d: Bad # or args to class", @@ -148,16 +151,17 @@ data1_varset *data1_read_varset (data1_handle dh, const char *file) continue; } } - else + else yaz_log(YLOG_WARN, "%s:%d: Unknown directive '%s'", file, lineno, argv[0]); - + fclose(f); return res; } /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab