Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String.create: get rid of deprecation warning #112

Merged
merged 3 commits into from
Apr 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ env:
global:
- PINS="vchan:. vchan-unix:. vchan-xen:."
matrix:
- PACKAGE="vchan" DISTRO="debian-stable" OCAML_VERSION="4.03.0"
- PACKAGE="vchan-unix" DISTRO="debian-testing" OCAML_VERSION="4.03.0"
- PACKAGE="vchan-xen" DISTRO="debian-unstable" OCAML_VERSION="4.03.0"
- PACKAGE="vchan" DISTRO="debian-stable" OCAML_VERSION="4.04.2"
- PACKAGE="vchan-unix" DISTRO="debian-testing" OCAML_VERSION="4.04.2"
- PACKAGE="vchan-xen" DISTRO="debian-unstable" OCAML_VERSION="4.04.2"
- PACKAGE="vchan" DISTRO="debian-stable" OCAML_VERSION="4.05.0"
- PACKAGE="vchan-unix" DISTRO="debian-testing" OCAML_VERSION="4.05.0"
- PACKAGE="vchan-xen" DISTRO="debian-unstable" OCAML_VERSION="4.05.0"
2 changes: 1 addition & 1 deletion lwt/vchan_lwt_unix.ml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module IO = struct
| e -> Lwt.fail e)

let read_exactly ic len =
let buf = String.create len in
let buf = Bytes.create len in
read_exactly ic buf 0 len >>= function
| true -> return (Some buf)
| false -> return None
Expand Down
4 changes: 2 additions & 2 deletions vchan-unix.opam
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ depends: [
"io-page"
"mirage-flow-lwt" {>= "1.0.0"}
"xenstore" {>= "1.2.2"}
"xenstore_transport"
"xenstore_transport" {>= "1.0.0"}
"xen-evtchn-unix"
"xen-gnt-unix"
"sexplib"
"cmdliner"
"result"
"ounit" {test}
]
available: [ocaml-version >= "4.02.0"]
available: [ocaml-version >= "4.04.0"]
tags: "org:mirage"
4 changes: 2 additions & 2 deletions vchan-xen.opam
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ depends: [
"mirage-flow-lwt" {>= "1.0.0"}
"xenstore" {>= "1.2.2"}
"mirage-xen"
"xenstore_transport"
"xenstore_transport" {>= "1.0.0"}
"sexplib"
"cmdliner"
"result"
"ounit" {test}
]
available: [ocaml-version >= "4.02.0"]
available: [ocaml-version >= "4.04.0"]
tags: "org:mirage"
4 changes: 2 additions & 2 deletions vchan.opam
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ depends: [
"io-page"
"mirage-flow-lwt" {>= "1.0.0"}
"xenstore" {>= "1.2.2"}
"xenstore_transport"
"xenstore_transport" {>= "1.0.0"}
"sexplib"
"cmdliner"
"result"
"ounit" {test}
]
available: [ocaml-version >= "4.02.0"]
available: [ocaml-version >= "4.04.0"]
tags: "org:mirage"