X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=data1%2Fd1_tagset.c;h=9c8860c363ee5023425630ea14c85286a0a21fce;hp=7f6c612ddf9ac143f22ae171d45331e10bac0fc4;hb=HEAD;hpb=6a0f9234f945bc4956e2bcef75f715661a9eba9a diff --git a/data1/d1_tagset.c b/data1/d1_tagset.c index 7f6c612..9c8860c 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-2009 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 #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",