projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix test
[idzebra-moved-to-github.git]
/
index
/
zebrash.c
diff --git
a/index/zebrash.c
b/index/zebrash.c
index
84799bf
..
efa8b2d
100644
(file)
--- a/
index/zebrash.c
+++ b/
index/zebrash.c
@@
-1,4
+1,4
@@
-/* $Id: zebrash.c,v 1.18 2003-07-04 14:25:51 heikki Exp $
+/* $Id: zebrash.c,v 1.20 2003-07-07 14:56:04 heikki Exp $
Copyright (C) 2002,2003
Index Data Aps
Copyright (C) 2002,2003
Index Data Aps
@@
-417,14
+417,14
@@
static int cmd_show( char *args[], WRBUF outbuff)
int nrecs=defargint(args[2],1);
char *setname=defarg(args[3],DEFAULTRESULTSET);
int rc=0;
int nrecs=defargint(args[2],1);
char *setname=defarg(args[3],DEFAULTRESULTSET);
int rc=0;
+ ZebraRetrievalRecord *recs;
ODR odr;
Z_RecordComposition *pcomp=0;
int i;
oid_value format;
odr=odr_createmem(ODR_ENCODE);
ODR odr;
Z_RecordComposition *pcomp=0;
int i;
oid_value format;
odr=odr_createmem(ODR_ENCODE);
- ZebraRetrievalRecord *recs=
- odr_malloc(odr,sizeof(ZebraRetrievalRecord)*nrecs);
+ recs= odr_malloc(odr,sizeof(ZebraRetrievalRecord)*nrecs);
rc =z_RecordComposition(odr, &pcomp, 0,"recordComposition");
format=oid_getvalbyname ("xml"); /*FIXME - let the user specify*/
for (i=0;i<nrecs;i++)
rc =z_RecordComposition(odr, &pcomp, 0,"recordComposition");
format=oid_getvalbyname ("xml"); /*FIXME - let the user specify*/
for (i=0;i<nrecs;i++)
@@
-432,7
+432,6
@@
static int cmd_show( char *args[], WRBUF outbuff)
rc = zebra_records_retrieve (zh, odr, setname,
pcomp, format, nrecs,recs);
rc = zebra_records_retrieve (zh, odr, setname,
pcomp, format, nrecs,recs);
- printf("rc=%d\n",rc);
if (0==rc)
{
for (i=0;i<nrecs;i++)
if (0==rc)
{
for (i=0;i<nrecs;i++)