From 75d90559bda8a51d24cfaefc6140156cf6d81daf Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Wed, 19 Mar 2025 13:39:15 -0400 Subject: [PATCH] fix warnings --- src/bin/http_of_dir.ml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/bin/http_of_dir.ml b/src/bin/http_of_dir.ml index 38f20820..0b72999f 100644 --- a/src/bin/http_of_dir.ml +++ b/src/bin/http_of_dir.ml @@ -1,7 +1,5 @@ module S = Tiny_httpd -module U = Tiny_httpd.Util module D = Tiny_httpd.Dir -module Pf = Printf module Log = Tiny_httpd.Log let serve ~config ~timeout (dir : string) addr port j : _ result = @@ -9,9 +7,9 @@ let serve ~config ~timeout (dir : string) addr port j : _ result = let after_init () = Printf.printf "serve directory %s on http://%(%s%):%d\n%!" dir (if S.is_ipv6 server then - "[%s]" - else - "%s") + "[%s]" + else + "%s") addr (S.port server) in @@ -63,9 +61,9 @@ let main () = (fun b -> config.dir_behavior <- (if b then - Index_or_lists - else - Lists)), + Index_or_lists + else + Lists)), " automatically redirect to index.html if present" ); ( "--delete", Unit (fun () -> config.delete <- true),