X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ztest%2Fgfs-example.c;h=6102bdf2d0bbe3eb80d58745f4b8a6b43c681858;hb=48934edc63895e9881924b11791da324c450b8a2;hp=05112e24fb67e993a9ea52c7032aa12317a8770f;hpb=379504a233e3e2cc85bca1e7b6d864f1395aec7c;p=yaz-moved-to-github.git diff --git a/ztest/gfs-example.c b/ztest/gfs-example.c index 05112e2..6102bdf 100644 --- a/ztest/gfs-example.c +++ b/ztest/gfs-example.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ @@ -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); }