-/* $Id: retrieve.c,v 1.40 2006-05-10 08:13:22 adam Exp $
- Copyright (C) 1995-2005
+/* $Id: retrieve.c,v 1.43 2006-08-14 10:40:15 adam Exp $
+ Copyright (C) 1995-2006
Index Data ApS
This file is part of the Zebra server.
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 <stdio.h>
while(zebra_rec_keys_read(keys, &str, &slen, &key_in))
{
int i;
- int ord = key_in.mem[0];
+ int ord = CAST_ZINT_TO_INT(key_in.mem[0]);
int index_type;
const char *db = 0;
int set = 0;
const char *string_index = 0;
char dst_buf[IT_MAX_WORD];
- zebraExplain_lookup_ord (zh->reg->zei, ord,
- &index_type, &db,
- &set, &use, &string_index);
+ zebraExplain_lookup_ord(zh->reg->zei, ord, &index_type, &db,
+ &string_index);
if (string_index)
wrbuf_printf(wrbuf, "%s", string_index);