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:
7568d6f
)
Fix typo in ocaml_libvirt_storage_vol_get_info
author
David Scott
<scott.dj@gmail.com>
Wed, 17 Apr 2013 10:23:00 +0000
(11:23 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 23 Apr 2013 12:27:07 +0000
(13:27 +0100)
The info.capacity was being overwritten with the info.allocation.
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
libvirt/libvirt_c_oneoffs.c
patch
|
blob
|
history
diff --git
a/libvirt/libvirt_c_oneoffs.c
b/libvirt/libvirt_c_oneoffs.c
index
70cf96f
..
b1d88cc
100644
(file)
--- a/
libvirt/libvirt_c_oneoffs.c
+++ b/
libvirt/libvirt_c_oneoffs.c
@@
-945,7
+945,7
@@
ocaml_libvirt_storage_vol_get_info (value volv)
rv = caml_alloc (3, 0);
Store_field (rv, 0, Val_int (info.type));
v = caml_copy_int64 (info.capacity); Store_field (rv, 1, v);
- v = caml_copy_int64 (info.allocation); Store_field (rv,
1
, v);
+ v = caml_copy_int64 (info.allocation); Store_field (rv,
2
, v);
CAMLreturn (rv);
#else