X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=data1%2Fd1_tagset.c;h=cba7e696c41577d3db0869afc51e53df4ca2bdfe;hb=585e87e5a6b274a8ee13b5432a462afd95c04096;hp=d653f8d7ac001b18b23768a32532acba8da36d22;hpb=a030c87bc444608639905eca95e29f84a4f1d991;p=idzebra-moved-to-github.git diff --git a/data1/d1_tagset.c b/data1/d1_tagset.c index d653f8d..cba7e69 100644 --- a/data1/d1_tagset.c +++ b/data1/d1_tagset.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 Index Data + Copyright (C) 2004-2013 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 #include @@ -62,7 +65,7 @@ data1_tag *data1_gettagbynum (data1_handle dh, data1_tagset *s, int type, int value) { data1_tag *r; - + for (; s; s = s->next) { /* scan local set */ @@ -170,7 +173,7 @@ data1_tagset *data1_read_tagset (data1_handle dh, const char *file, int type) fclose(f); return 0; } - + /* read namelist */ nm = names; npp = &rr->names; @@ -201,7 +204,7 @@ data1_tagset *data1_read_tagset (data1_handle dh, const char *file, int type) else if (!strcmp(cmd, "reference")) { char *name; - + if (argc != 2) { yaz_log(YLOG_WARN, "%s:%d: Bad # args to reference",