X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fsnippet.c;h=48d37ef4ea52c916a3b18b04d14746cd68270bd2;hb=761702c17906c9c71a0c42e7abaa18e578aec012;hp=dcd8b713c64d5cf154579bbe65f3ec87ae89ff8a;hpb=afa71e9ea1ff3707654936324c30703a618852ff;p=idzebra-moved-to-github.git diff --git a/util/snippet.c b/util/snippet.c index dcd8b71..48d37ef 100644 --- a/util/snippet.c +++ b/util/snippet.c @@ -1,4 +1,4 @@ -/* $Id: snippet.c,v 1.8 2006-06-07 10:50:09 adam Exp $ +/* $Id: snippet.c,v 1.11 2006-10-29 17:20:02 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -15,9 +15,9 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with Zebra; see the file LICENSE.zebra. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ #include @@ -31,7 +31,7 @@ struct zebra_snippets { zebra_snippet_word *tail; }; -zebra_snippets *zebra_snippets_create() +zebra_snippets *zebra_snippets_create(void) { NMEM nmem = nmem_create(); zebra_snippets *l = nmem_malloc(nmem, sizeof(*l)); @@ -137,8 +137,10 @@ zebra_snippets *zebra_snippets_window(zebra_snippets *doc, zebra_snippets *hit, } } yaz_log(YLOG_DEBUG, "ord=%d", ord); - yaz_log(YLOG_DEBUG, "first_seq_no_best_window=%d", first_seq_no_best_window); - yaz_log(YLOG_DEBUG, "last_seq_no_best_window=%d", last_seq_no_best_window); + yaz_log(YLOG_DEBUG, "first_seq_no_best_window=" ZINT_FORMAT, + first_seq_no_best_window); + yaz_log(YLOG_DEBUG, "last_seq_no_best_window=" ZINT_FORMAT, + last_seq_no_best_window); yaz_log(YLOG_DEBUG, "number_best_window=%d", number_best_window); window_start = (first_seq_no_best_window + last_seq_no_best_window -