Blame SOURCES/0002-Don-t-bother-checking-return-from-virInitialize.patch

4e3392
From 06b24089986523806d386b9e3cfa4fcf5eeb87e6 Mon Sep 17 00:00:00 2001
4e3392
From: "Richard W.M. Jones" <rjones@redhat.com>
4e3392
Date: Tue, 17 Mar 2015 12:53:29 +0000
4e3392
Subject: [PATCH 2/2] Don't bother checking return from virInitialize.
4e3392
4e3392
The Perl bindings don't do this, and it seems that the call can never
4e3392
fail, or if it does we don't care.
4e3392
---
4e3392
 libvirt/libvirt_c_oneoffs.c | 5 +----
4e3392
 1 file changed, 1 insertion(+), 4 deletions(-)
4e3392
4e3392
diff --git a/libvirt/libvirt_c_oneoffs.c b/libvirt/libvirt_c_oneoffs.c
4e3392
index 32e5a4b..5d82194 100644
4e3392
--- a/libvirt/libvirt_c_oneoffs.c
4e3392
+++ b/libvirt/libvirt_c_oneoffs.c
4e3392
@@ -1229,12 +1229,9 @@ CAMLprim value
4e3392
 ocaml_libvirt_init (value unit)
4e3392
 {
4e3392
   CAMLparam1 (unit);
4e3392
-  CAMLlocal1 (rv);
4e3392
-  int r;
4e3392
 
4e3392
   virSetErrorFunc (NULL, ignore_errors);
4e3392
-  r = virInitialize ();
4e3392
-  CHECK_ERROR (r == -1, "virInitialize");
4e3392
+  virInitialize ();
4e3392
 
4e3392
   CAMLreturn (Val_unit);
4e3392
 }
4e3392
-- 
4e3392
2.3.1
4e3392