make xen ocaml safe-strings compliant
authorMichael Young <m.a.young@durham.ac.uk>
Mon, 12 Mar 2018 18:49:29 +0000 (18:49 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 13 Mar 2018 15:54:23 +0000 (15:54 +0000)
commit9f3b40e8fe083e0d6d184c105f96ad9b9617f038
treea0f5d1b67aa2408ad02a9d91d3f877229ac1daab
parentb43501451733193b265de30fd79a764363a2a473
make xen ocaml safe-strings compliant

Xen built with ocaml 4.06 gives errors such as
Error: This expression has type bytes but an expression was
        expected of type string
as Byte and safe-strings which were introduced in 4.02 are the
default in 4.06.
This patch which is partly by Richard W.M. Jones of Red Hat
from https://bugzilla.redhat.com/show_bug.cgi?id=1526703
fixes these issues.

Signed-off-by: Michael Young <m.a.young@durham.ac.uk>
Reviewed-by: Christian Lindig<christian.lindig@citrix.com>
tools/ocaml/libs/xb/xb.ml
tools/ocaml/libs/xb/xb.mli
tools/ocaml/xenstored/logging.ml
tools/ocaml/xenstored/stdext.ml
tools/ocaml/xenstored/utils.ml