git.annexia.org
/
ocaml-libvirt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Suppress errors to stderr and use thread-local virErrorPtr
[ocaml-libvirt.git]
/
libvirt
/
libvirt_c_epilogue.c
diff --git
a/libvirt/libvirt_c_epilogue.c
b/libvirt/libvirt_c_epilogue.c
index
4649724
..
4972e50
100644
(file)
--- a/
libvirt/libvirt_c_epilogue.c
+++ b/
libvirt/libvirt_c_epilogue.c
@@
-57,14
+57,14
@@
option_default (value option, value deflt)
#endif
static void
#endif
static void
-_raise_virterror (
virConnectPtr conn,
const char *fn)
+_raise_virterror (const char *fn)
{
CAMLparam0 ();
CAMLlocal1 (rv);
virErrorPtr errp;
struct _virError err;
{
CAMLparam0 ();
CAMLlocal1 (rv);
virErrorPtr errp;
struct _virError err;
- errp =
conn ? virConnGetLastError (conn) :
virGetLastError ();
+ errp = virGetLastError ();
if (!errp) {
/* Fake a _virError structure. */
if (!errp) {
/* Fake a _virError structure. */