@@ -184,7 +184,7 @@ let get_pointer half =
184184(* Lay out a blank double-buffered redo log on the given block device. *)
185185(* May raise Unixext.Timeout exception *)
186186let initialise_redo_log block_dev_fd target_response_time =
187- ignore_int (Unixext. seek_to block_dev_fd 0 ) ;
187+ ignore (Unixext. seek_to block_dev_fd 0 : int ) ;
188188 Unixext. time_limited_write_substring block_dev_fd magic_size magic
189189 target_response_time ;
190190 Unixext. time_limited_write_substring block_dev_fd 2 " \000 0"
@@ -221,7 +221,7 @@ let open_block_device block_dev target_response_time =
221221
222222(* Within the given block device, seek to the position of the validity byte. *)
223223let seek_to_validity_byte block_dev_fd =
224- ignore_int (Unixext. seek_to block_dev_fd pos_validity_byte)
224+ ignore (Unixext. seek_to block_dev_fd pos_validity_byte : int )
225225
226226(* Read the validity byte from the given block device. *)
227227let read_validity_byte block_dev_fd target_response_time =
@@ -279,14 +279,15 @@ let read_database block_dev_fd target_response_time =
279279 let db_fn f =
280280 let prev_pos = Unixext. current_cursor_pos block_dev_fd in
281281 (* Seek to the position of the database *)
282- ignore_int (Unixext. seek_to block_dev_fd cur_pos) ;
282+ ignore (Unixext. seek_to block_dev_fd cur_pos : int ) ;
283283 (* Read 'len' bytes from the block device and send them to the function we were given *)
284- ignore_int (Unixext. read_data_in_string_chunks f ~max_bytes: len block_dev_fd) ;
284+ ignore
285+ (Unixext. read_data_in_string_chunks f ~max_bytes: len block_dev_fd : int ) ;
285286 (* Seek back to where we were before *)
286- ignore_int (Unixext. seek_to block_dev_fd prev_pos)
287+ ignore (Unixext. seek_to block_dev_fd prev_pos : int )
287288 in
288289 (* For now, skip over where the database is *)
289- ignore_int (Unixext. seek_rel block_dev_fd len) ;
290+ ignore (Unixext. seek_rel block_dev_fd len : int ) ;
290291 (* Read the generation count and marker *)
291292 let generation_count = Int64. of_string (read generation_size) in
292293 let marker_end = read marker_size in
@@ -471,7 +472,7 @@ let action_writedb block_dev_fd client datasock target_response_time =
471472 (* if neither half is valid, use the first half *)
472473 in
473474 (* Seek to the start of the chosen half *)
474- ignore_int (Unixext. seek_to block_dev_fd (start_of_half half_to_use)) ;
475+ ignore (Unixext. seek_to block_dev_fd (start_of_half half_to_use) : int ) ;
475476 (* Check that we've got enough space for two markers, a length and a generation count. This is the smallest possible size for a db record. *)
476477 let min_space_needed = (marker_size * 2 ) + size_size + generation_size in
477478 let available_space = Db_globs. redo_log_length_of_half in
@@ -487,7 +488,7 @@ let action_writedb block_dev_fd client datasock target_response_time =
487488 R. debug " Cursor position to which the length will be written is %d"
488489 pos_to_write_length ;
489490 (* Seek forwards to the position to write the data *)
490- ignore_int (Unixext. seek_rel block_dev_fd size_size) ;
491+ ignore (Unixext. seek_rel block_dev_fd size_size : int ) ;
491492 (* Read the data from the data channel and write this directly into block_dev_fd *)
492493 let remaining_space =
493494 Db_globs. redo_log_length_of_half - marker_size - size_size
@@ -523,7 +524,7 @@ let action_writedb block_dev_fd client datasock target_response_time =
523524 (Bytes. make trample_size '\000' )
524525 target_response_time ;
525526 (* Seek backwards in the block device to where the length is supposed to go and write it *)
526- ignore_int (Unixext. seek_to block_dev_fd pos_to_write_length) ;
527+ ignore (Unixext. seek_to block_dev_fd pos_to_write_length : int ) ;
527528 let total_length_str = Printf. sprintf " %016d" total_length in
528529 Unixext. time_limited_write_substring block_dev_fd size_size total_length_str
529530 target_response_time ;
@@ -680,7 +681,7 @@ let action_read block_dev_fd client datasock target_response_time =
680681 (* the log is empty *)
681682
682683 (* Seek to the start of the chosen half *)
683- ignore_int (Unixext. seek_to block_dev_fd (start_of_half half_to_use)) ;
684+ ignore (Unixext. seek_to block_dev_fd (start_of_half half_to_use) : int ) ;
684685 (* Attempt to read a database record *)
685686 let length, db_fn, generation_count, marker =
686687 read_database block_dev_fd target_response_time
@@ -783,7 +784,7 @@ let _ =
783784 (fun half ->
784785 Printf. printf " *** [Half %s] Entering half.\n " (half_to_string half) ;
785786 (* Seek to the start of the chosen half *)
786- ignore_int (Unixext. seek_to block_dev_fd (start_of_half half)) ;
787+ ignore (Unixext. seek_to block_dev_fd (start_of_half half) : int ) ;
787788 (* Attempt to read a database record *)
788789 try
789790 let length, db_fn, generation_count, marker =
0 commit comments