summaryrefslogtreecommitdiff
path: root/lib/http/session.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http/session.myr')
-rw-r--r--lib/http/session.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http/session.myr b/lib/http/session.myr
index 32ec8eb..50cf893 100644
--- a/lib/http/session.myr
+++ b/lib/http/session.myr
@@ -4,7 +4,7 @@ use bio
use "types"
pkg http =
- const mksession : (schema : schema, host : byte[:], port : int -> std.result(session#, err))
+ const mksession : (schema : schema, host : byte[:], port : uint16 -> std.result(session#, err))
const mksrvsession : (fd : std.fd -> session#)
const freesession : (s : session# -> void)
@@ -42,7 +42,7 @@ const mksrvsession = {fd
-> std.mk([
.err = false,
.srvname = std.sldup("Myrfoo HTTP Server"),
- .f = bio.mkfile(fd, bio.Rw)
+ .f = bio.mkfile(fd, bio.Rw),
])
}