X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fapi%2Ftestclient.c;h=20d8b4c8295c99e98d276d27519be4353cfa6fe5;hb=0e8272b3d5a18a0695f8c7a58617caa0ad938059;hp=377f838d14b4ccc51693ec5b6b736bee5b18524c;hpb=ac13dceecd5f75669820819575daf88e0add5c8d;p=idzebra-moved-to-github.git diff --git a/test/api/testclient.c b/test/api/testclient.c index 377f838..20d8b4c 100644 --- a/test/api/testclient.c +++ b/test/api/testclient.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 Index Data + Copyright (C) Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -98,7 +98,7 @@ int main(int argc, char **argv) exit (3); } z = ZOOM_connection_new (target, 0); - + if ((error = ZOOM_connection_error(z, &errmsg, &addinfo))) { printf ("Error: %s (%d) %s\n", errmsg, error, addinfo); @@ -131,7 +131,7 @@ int main(int argc, char **argv) ZOOM_record_get( ZOOM_resultset_record(r, pos + retrieve_offset), "render", &len); - + if (rec) fwrite (rec, 1, len, stdout); }