diff --git a/cmd/gommunityid.go b/cmd/gommunityid.go index 1818dc0..ed3b23a 100644 --- a/cmd/gommunityid.go +++ b/cmd/gommunityid.go @@ -10,7 +10,6 @@ import ( ) func main() { - pcapCmd := flag.NewFlagSet("pcap", flag.ExitOnError) pcapVersion := pcapCmd.Uint("version", 1, "Community ID version") pcapSeed := pcapCmd.Uint("seed", 0, "seed value (default 0)") diff --git a/pcap_flowtuple_source_test.go b/pcap_flowtuple_source_test.go index f0b86b1..84a1d83 100644 --- a/pcap_flowtuple_source_test.go +++ b/pcap_flowtuple_source_test.go @@ -19,7 +19,7 @@ func TestPcapFlowTupleSource(t *testing.T) { if err != nil { log.Fatal(err) } - for _ = range ftChan { + for range ftChan { i++ } log.Printf("read %s with %d packets", testfile, i)