ocaml/xenstored: reduce use of unsafe conversions
authorMarcello Seri <marcello.seri@citrix.com>
Thu, 31 May 2018 13:05:37 +0000 (14:05 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 4 Jun 2018 10:17:22 +0000 (11:17 +0100)
commit3960f3a52346348e6b0306f65d19375612bd35b9
tree2d7fbf97181fe0b04487c01668437313d96f3f48
parentec7d54dd1a87801ed328f4fa38ffdeaef1265958
ocaml/xenstored: reduce use of unsafe conversions

The rationalisation of the Xs_ring interface in the xb library
allows to further reduce the unsafe calls withouth introducing
copies. This patch also contains some further code cleanups.

Signed-off-by: Marcello Seri <marcello.seri@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
Tested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
tools/ocaml/xenstored/logging.ml
tools/ocaml/xenstored/stdext.ml
tools/ocaml/xenstored/utils.ml