From 371c6ab1ec4d3e80d4e829a61498487a2f96d774 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 7 Jun 2005 15:12:39 +0000 Subject: [PATCH] Avoid mixed stmt / var declare --- util/snippet.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/util/snippet.c b/util/snippet.c index a3045a3..a9c6853 100644 --- a/util/snippet.c +++ b/util/snippet.c @@ -1,4 +1,4 @@ -/* $Id: snippet.c,v 1.3 2005-06-07 14:53:39 adam Exp $ +/* $Id: snippet.c,v 1.4 2005-06-07 15:12:39 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -99,8 +99,12 @@ zebra_snippets *zebra_snippets_window(zebra_snippets *doc, zebra_snippets *hit, { int window_start; int reg_type; + int first_seq_no_best_window = 0; + int last_seq_no_best_window = 0; + int number_best_window = 0; zebra_snippet_word *hit_w, *doc_w; int min_ord = 0; /* not set yet */ + for (hit_w = zebra_snippets_list(hit); hit_w; hit_w = hit_w->next) if (hit_w->ord > ord && (min_ord == 0 || @@ -113,10 +117,6 @@ zebra_snippets *zebra_snippets_window(zebra_snippets *doc, zebra_snippets *hit, break; ord = min_ord; - int first_seq_no_best_window = 0; - int last_seq_no_best_window = 0; - int number_best_window = 0; - for (hit_w = zebra_snippets_list(hit); hit_w; hit_w = hit_w->next) { if (hit_w->ord == ord) -- 1.7.10.4