X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ztest%2Fgfs-example.c;h=6102bdf2d0bbe3eb80d58745f4b8a6b43c681858;hb=48934edc63895e9881924b11791da324c450b8a2;hp=6a4f44626d39eabf3850ac7f461366e7d57c2add;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755;p=yaz-moved-to-github.git diff --git a/ztest/gfs-example.c b/ztest/gfs-example.c index 6a4f446..6102bdf 100644 --- a/ztest/gfs-example.c +++ b/ztest/gfs-example.c @@ -52,7 +52,8 @@ static int my_fetch(void *handle, bend_fetch_rr *r) { char buf[40]; yaz_snprintf(buf, sizeof(buf), "%d\n", r->number); - + + r->output_format = odr_oiddup(r->stream, yaz_oid_recsyn_xml); r->record = odr_strdup(r->stream, buf); r->len = strlen(r->record); }