Skip to content

Commit

Permalink
Merge pull request #298 from hannesm/mirage-random-c
Browse files Browse the repository at this point in the history
use Mirage_random.C instead of 'S with type buffer'
  • Loading branch information
yomimono authored Mar 6, 2017
2 parents efd0156 + 3122f8d commit ea77329
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/tcp/flow.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ open Result
let src = Logs.Src.create "flow" ~doc:"Mirage TCP Flow module"
module Log = (val Logs.src_log src : Logs.LOG)

module Make(IP:Mirage_protocols_lwt.IP)(TM:Mirage_time_lwt.S)(C:Mirage_clock.MCLOCK)(R:Mirage_random.S with type buffer = Cstruct.t) = struct
module Make(IP:Mirage_protocols_lwt.IP)(TM:Mirage_time_lwt.S)(C:Mirage_clock.MCLOCK)(R:Mirage_random.C) = struct

module Pcb = Pcb.Make(IP)(TM)(C)(R)

Expand Down
2 changes: 1 addition & 1 deletion lib/tcp/flow.mli
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
module Make (IP:Mirage_protocols_lwt.IP)
(TM:Mirage_time_lwt.S)
(C:Mirage_clock.MCLOCK)
(R:Mirage_random.S with type buffer = Cstruct.t) : sig
(R:Mirage_random.C) : sig
include Mirage_protocols_lwt.TCP
with type ip = IP.t
and type ipaddr = IP.ipaddr
Expand Down
2 changes: 1 addition & 1 deletion lib/tcp/pcb.ml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ open !Result
let src = Logs.Src.create "pcb" ~doc:"Mirage TCP PCB module"
module Log = (val Logs.src_log src : Logs.LOG)

module Make(Ip:Mirage_protocols_lwt.IP)(Time:Mirage_time_lwt.S)(Clock:Mirage_clock.MCLOCK)(Random:Mirage_random.S with type buffer = Cstruct.t) =
module Make(Ip:Mirage_protocols_lwt.IP)(Time:Mirage_time_lwt.S)(Clock:Mirage_clock.MCLOCK)(Random:Mirage_random.C) =
struct

module RXS = Segment.Rx(Time)
Expand Down
2 changes: 1 addition & 1 deletion lib/tcp/pcb.mli
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

open !Result

module Make(Ip:Mirage_protocols_lwt.IP)(Time:Mirage_time_lwt.S)(Clock:Mirage_clock.MCLOCK)(Random:Mirage_random.S with type buffer = Cstruct.t) : sig
module Make(Ip:Mirage_protocols_lwt.IP)(Time:Mirage_time_lwt.S)(Clock:Mirage_clock.MCLOCK)(Random:Mirage_random.C) : sig

(** Overall state of the TCP stack *)
type t
Expand Down
2 changes: 1 addition & 1 deletion lib/tcpip_stack_direct.ml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module type TCPV4_DIRECT = Mirage_protocols_lwt.TCPV4

module Make
(Time : Mirage_time.S)
(Random : Mirage_random.S)
(Random : Mirage_random.C)
(Netif : Mirage_net_lwt.S)
(Ethif : Mirage_protocols_lwt.ETHIF with type netif = Netif.t)
(Arpv4 : Mirage_protocols_lwt.ARP)
Expand Down
2 changes: 1 addition & 1 deletion lib/tcpip_stack_direct.mli
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module type TCPV4_DIRECT = Mirage_protocols_lwt.TCPV4

module Make
(Time : Mirage_time.S)
(Random : Mirage_random.S)
(Random : Mirage_random.C)
(Netif : Mirage_net_lwt.S)
(Ethif : Mirage_protocols_lwt.ETHIF with type netif = Netif.t)
(Arpv4 : Mirage_protocols_lwt.ARP)
Expand Down
2 changes: 1 addition & 1 deletion lib/udp/udp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module Log = (val Logs.src_log src : Logs.LOG)

let pp_ips = Format.pp_print_list Ipaddr.pp_hum

module Make(Ip: Mirage_protocols_lwt.IP)(Random:Mirage_random.S with type buffer = Cstruct.t) = struct
module Make(Ip: Mirage_protocols_lwt.IP)(Random:Mirage_random.C) = struct

type 'a io = 'a Lwt.t
type buffer = Cstruct.t
Expand Down
2 changes: 1 addition & 1 deletion lib/udp/udp.mli
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*)


module Make (IP:Mirage_protocols_lwt.IP)(R:Mirage_random.S with type buffer = Cstruct.t) : sig
module Make (IP:Mirage_protocols_lwt.IP)(R:Mirage_random.C) : sig
include Mirage_protocols_lwt.UDP
with type ip = IP.t
and type ipaddr = IP.ipaddr
Expand Down

0 comments on commit ea77329

Please sign in to comment.