X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ztest%2Fgfs-example.c;h=6102bdf2d0bbe3eb80d58745f4b8a6b43c681858;hb=48934edc63895e9881924b11791da324c450b8a2;hp=258c83fcd1ffc8826a39b683c956d0f651d45300;hpb=93f4285bbf2ed5a42fe62f92c7c4618df5f20583;p=yaz-moved-to-github.git diff --git a/ztest/gfs-example.c b/ztest/gfs-example.c index 258c83f..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-2008 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include static int my_search(void *handle, bend_search_rr *rr) @@ -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); } @@ -96,6 +97,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab