projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WRBUF updates
[metaproxy-moved-to-github.git]
/
src
/
gduutil.cpp
diff --git
a/src/gduutil.cpp
b/src/gduutil.cpp
index
b7780e2
..
e0b971f
100644
(file)
--- a/
src/gduutil.cpp
+++ b/
src/gduutil.cpp
@@
-1,5
+1,5
@@
-/* $Id: gduutil.cpp,v 1.16 2006-10-05 12:17:24 marc Exp $
- Copyright (c) 2005-2006, Index Data.
+/* $Id: gduutil.cpp,v 1.18 2007-03-20 07:57:54 adam Exp $
+ Copyright (c) 2005-2007, Index Data.
See the LICENSE file for details
*/
See the LICENSE file for details
*/
@@
-182,8
+182,8
@@
std::ostream& std::operator<<(std::ostream& os, Z_APDU& zapdu)
WRBUF wr = wrbuf_alloc();
yaz_query_to_wrbuf(wr, sr->query);
WRBUF wr = wrbuf_alloc();
yaz_query_to_wrbuf(wr, sr->query);
- os << wrbuf_buf(wr);
- wrbuf_free(wr, 1);
+ os << wrbuf_cstr(wr);
+ wrbuf_destroy(wr);
}
break;
case Z_APDU_searchResponse:
}
break;
case Z_APDU_searchResponse:
@@
-336,8
+336,8
@@
std::ostream& std::operator<<(std::ostream& os, Z_APDU& zapdu)
{
WRBUF wr = wrbuf_alloc();
yaz_scan_to_wrbuf(wr, sr->termListAndStartPoint, VAL_NONE);
{
WRBUF wr = wrbuf_alloc();
yaz_scan_to_wrbuf(wr, sr->termListAndStartPoint, VAL_NONE);
- os << wrbuf_buf(wr);
- wrbuf_free(wr, 1);
+ os << wrbuf_cstr(wr);
+ wrbuf_destroy(wr);
}
else
os << " -";
}
else
os << " -";