Skip to content

Commit

Permalink
better function name in sample
Browse files Browse the repository at this point in the history
  • Loading branch information
mor1 committed May 20, 2012
1 parent e28902a commit a01140f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib_test/updates.ml
Expand Up @@ -19,7 +19,7 @@ open Operators

let npackets = ref 0

let process = function
let updates = function
| h, Mrt.Bgp4mp (_, Bgp4mp.Message Some (Bgp.Update u))
-> (printf "%d\t%s\t%s\n%!"
!npackets (Mrt.header_to_string h) (Bgp.update_to_string u)
Expand All @@ -34,7 +34,7 @@ let _ =

let rec packets next = match next () with
| None -> ()
| Some p -> incr npackets; process p; packets next
| Some p -> incr npackets; updates p; packets next
in buf |> Mrt.parse |> packets;

printf "num packets %d\n%!" !npackets

0 comments on commit a01140f

Please sign in to comment.