]> matita.cs.unibo.it Git - helm.git/commitdiff
"qualified" callback req argument as required by new API
authorStefano Zacchiroli <zack@upsilon.cc>
Wed, 25 Dec 2002 14:50:27 +0000 (14:50 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Wed, 25 Dec 2002 14:50:27 +0000 (14:50 +0000)
helm/DEVEL/ocaml-http/examples/damned_recursion.ml

index 32faa01371ee385d76f01a076e60014aebff6005..0280b3f1c5a0795d9b98359813b97f502529dd4b 100644 (file)
@@ -19,6 +19,7 @@
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *)
 
+open Http_types;;
 open Printf;;
 
 (*
@@ -44,7 +45,7 @@ let wget addr port path =
   let inchan = Unix.in_channel_of_descr suck in
   wget' inchan ""
 in
-let callback req outchan =
+let callback (req: request) outchan =
   let i = int_of_string (req#param "x") in
   prerr_endline (string_of_int i);
   match i with