projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use GCC attribute warn_unsed_result for a few of the most important
[idzebra-moved-to-github.git]
/
test
/
api
/
t2.c
diff --git
a/test/api/t2.c
b/test/api/t2.c
index
20cf425
..
fcfa4d4
100644
(file)
--- a/
test/api/t2.c
+++ b/
test/api/t2.c
@@
-1,6
+1,6
@@
-/* $Id: t2.c,v 1.15 2004-12-02 11:28:20 adam Exp $
- Copyright (C) 2003,2004
- Index Data Aps
+/* $Id: t2.c,v 1.18 2006-03-31 15:58:05 adam Exp $
+ Copyright (C) 1995-2005
+ Index Data ApS
This file is part of the Zebra server.
This file is part of the Zebra server.
@@
-28,13
+28,16
@@
const char *myrec[] = {
"</gils>\n",
0};
"</gils>\n",
0};
-int main(int argc, char **argv)
+void tst(int argc, char **argv)
{
{
- ZebraService zs = start_up(0, argc, argv);
- ZebraHandle zh = zebra_open(zs);
+ ZebraService zs = tl_start_up(0, argc, argv);
+ ZebraHandle zh = zebra_open(zs, 0);
- init_data(zh, myrec);
- do_query(__LINE__,zh, "@attr 1=4 my", 1);
+ YAZ_CHECK(tl_init_data(zh, myrec));
+ YAZ_CHECK(tl_query(zh, "@attr 1=4 my", 1));
- return close_down(zh, zs, 0);
+ YAZ_CHECK(tl_close_down(zh, zs));
}
}
+
+TL_MAIN
+