X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=data1%2Fd1_varset.c;h=bb874e8820955a8fccdbde2ecbd514f44e2c7eac;hb=aae116a2ec79fd3487ac2d50ad2d6110f64145b2;hp=eb214cd33211c8e441c9a4d44e483c794040cc5e;hpb=a66b7d79383ae700f3358731eecfe2aafed0e90d;p=idzebra-moved-to-github.git diff --git a/data1/d1_varset.c b/data1/d1_varset.c index eb214cd..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) 1994-2010 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,10 +151,10 @@ 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; }