X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fmod_safari.c;h=ca0057f365c71ec72d6933cdb85e0e20963dbff5;hb=bdf0f406d66c4702c3b8942d1bb33a9212283138;hp=413c00d038ba094db5d9a987051d1b943001a46a;hpb=89d16cf15eda0e4802d18b8ad09bd3653508ebfc;p=idzebra-moved-to-github.git diff --git a/index/mod_safari.c b/index/mod_safari.c index 413c00d..ca0057f 100644 --- a/index/mod_safari.c +++ b/index/mod_safari.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2009 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 @@ -148,9 +151,9 @@ static int filter_extract(void *clientData, struct recExtractCtrl *p) recWord.index_type = type_cstr; if (tinfo->segments) { - if (sscanf(cp, ZINT_FORMAT " " ZINT_FORMAT " " ZINT_FORMAT + if (sscanf(cp, ZINT_FORMAT " " ZINT_FORMAT " " ZINT_FORMAT ZINT_FORMAT " %39s %n", - &recWord.record_id, &recWord.section_id, + &recWord.record_id, &recWord.section_id, &recWord.segment, &recWord.seqno, field, &nor) < 5) @@ -274,7 +277,7 @@ static int filter_retrieve (void *clientData, struct recRetrieveCtrl *p) } p->output_format = yaz_oid_recsyn_sutrs; p->rec_buf = filter_buf; - p->rec_len = filter_ptr; + p->rec_len = filter_ptr; return 0; } @@ -299,7 +302,7 @@ static struct recType filter_type2 = { }; RecType -#ifdef IDZEBRA_STATIC_SAFARI +#if IDZEBRA_STATIC_SAFARI idzebra_filter_safari #else idzebra_filter @@ -313,6 +316,7 @@ idzebra_filter /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab