git.annexia.org
/
ocaml-libvirt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68fae1e
)
Don't bother checking return from virInitialize.
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 17 Mar 2015 12:53:29 +0000
(12:53 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 17 Mar 2015 12:53:29 +0000
(12:53 +0000)
The Perl bindings don't do this, and it seems that the call can never
fail, or if it does we don't care.
libvirt/libvirt_c_oneoffs.c
patch
|
blob
|
history
diff --git
a/libvirt/libvirt_c_oneoffs.c
b/libvirt/libvirt_c_oneoffs.c
index
32e5a4b
..
5d82194
100644
(file)
--- a/
libvirt/libvirt_c_oneoffs.c
+++ b/
libvirt/libvirt_c_oneoffs.c
@@
-1229,12
+1229,9
@@
CAMLprim value
ocaml_libvirt_init (value unit)
{
CAMLparam1 (unit);
- CAMLlocal1 (rv);
- int r;
virSetErrorFunc (NULL, ignore_errors);
- r = virInitialize ();
- CHECK_ERROR (r == -1, "virInitialize");
+ virInitialize ();
CAMLreturn (Val_unit);
}