From 577e04ded43baa0582530316da40777884031dc8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kim=20Nguy=E1=BB=85n?= Date: Thu, 12 Apr 2012 18:08:18 +0200 Subject: [PATCH] Encapsulate serialization results around with ... --- src/nodeSet.ml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nodeSet.ml b/src/nodeSet.ml index ad3768b..142476b 100644 --- a/src/nodeSet.ml +++ b/src/nodeSet.ml @@ -192,8 +192,10 @@ module Mat : S with type t = Tree.node mat = Unix.openfile name [ Unix.O_WRONLY; Unix.O_TRUNC; Unix.O_CREAT ] 0o666, Unix.close in + ignore (Unix.write fd "\n" 0 13); iter (fun node -> Tree.print_xml v node fd) l; Tree.flush v fd; + ignore (Unix.write fd "\n" 0 14); finish fd end -- 2.17.1