X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=test%2Fapi%2Ftestclient.c;h=4175d824f37c26b0fa57062dfb13472b09300041;hp=25a1af7c3d6f6aded1977c473add3a980cae5e44;hb=aeea139423b8eaf28a4de53b3d7b2ad1f22284e7;hpb=a66b7d79383ae700f3358731eecfe2aafed0e90d diff --git a/test/api/testclient.c b/test/api/testclient.c index 25a1af7..4175d82 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-2010 Index Data + Copyright (C) 1994-2011 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 @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #ifdef WIN32 @@ -95,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); @@ -128,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); }