X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=ztest%2Fgfs-example.c;h=6102bdf2d0bbe3eb80d58745f4b8a6b43c681858;hp=6a4f44626d39eabf3850ac7f461366e7d57c2add;hb=e727aa6892bf8c0cb188c7a26506cd4805fea0c0;hpb=6cdb773ed83a2bd43d07bcf60b2f20ec71209838 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); }