]> xenbits.xensource.com Git - people/dariof/xen.git/commit
make xen ocaml safe-strings compliant
authorMichael Young <m.a.young@durham.ac.uk>
Tue, 6 Feb 2018 21:27:23 +0000 (21:27 +0000)
committerWei Liu <wei.liu2@citrix.com>
Wed, 7 Feb 2018 11:24:43 +0000 (11:24 +0000)
commitdf1e4c6e7f8892e950433ff33c215df0cd7b30f7
treec50bbab4a8ccac84d714e161a4d7adcd852a073c
parent6b48066e2215e733c91ff35d43b4a0e14fb726b6
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 mostly by Richard W.M. Jones of Red Hat
from https://bugzilla.redhat.com/show_bug.cgi?id=1526703
fixes these issues.

v2: drop tools/ocaml/libs/xc/xenctrl.ml from the patch as the
affected code was removed by commit d933f1a53c06002351c1e36d40615e40bd4bf6af
tools/ocaml: Drop coredump infrastructure

Signed-off-by: Michael Young <m.a.young@durham.ac.uk>
Reviewed-by: Christian Lindig <christian.lindig@citrix.com>
[ wei: remove trailing whitespaces ]
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
tools/ocaml/libs/xb/xb.ml
tools/ocaml/xenstored/logging.ml
tools/ocaml/xenstored/stdext.ml
tools/ocaml/xenstored/utils.ml