X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Finvstat.c;h=3ec3a325b0e122ab3118bb7c8d4426f39f2b2bf8;hb=6f7dfe3c3f09f7104c1ae7616c9d207edeab308d;hp=fbe75b0c947bc54ae1a320ceb137d6dfe18a20fd;hpb=4478d785b7769691261005c98063b98a5a5971b3;p=idzebra-moved-to-github.git diff --git a/index/invstat.c b/index/invstat.c index fbe75b0..3ec3a32 100644 --- a/index/invstat.c +++ b/index/invstat.c @@ -1,5 +1,5 @@ -/* $Id: invstat.c,v 1.53 2006-08-14 10:40:15 adam Exp $ - Copyright (C) 1995-2006 +/* $Id: invstat.c,v 1.55 2007-10-29 16:57:52 adam Exp $ + Copyright (C) 1995-2007 Index Data ApS This file is part of the Zebra server. @@ -51,7 +51,7 @@ static void print_dict_item (ZebraHandle zh, const char *s, zint count, char dst[IT_MAX_WORD+1]; int ord; int len = key_SU_decode(&ord, (const unsigned char *) s); - int index_type; + const char *index_type; const char *db = 0; if (!zh) @@ -60,7 +60,7 @@ static void print_dict_item (ZebraHandle zh, const char *s, zint count, { zebraExplain_lookup_ord (zh->reg->zei, ord, &index_type, &db, 0); - zebra_term_untrans(zh, index_type, dst, s + len); + zebra_term_untrans(zh, *index_type, dst, s + len); } printf("%02d:%10" ZINT_FORMAT0 " %s %d.%d - %d.%d\n", ord, count, dst, firstsys, firstseq, lastsys, lastseq);