Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use camelcase

  • Loading branch information...
commit ac63cf221739bdd0f116adc9d3fb86f243c7c0b7 1 parent a061218
@miekg miekg authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 pcap.go
View
4 pcap.go
@@ -43,7 +43,7 @@ type IFAddress struct {
}
// Openlive opens a device and returns a *Pcap handler
-func Openlive(device string, snaplen int32, promisc bool, timeout_ms int32) (handle *Pcap, err string) {
+func OpenLive(device string, snaplen int32, promisc bool, timeout_ms int32) (handle *Pcap, err string) {
var buf *C.char
buf = (*C.char)(C.calloc(ERRBUF_SIZE, 1))
h := new(Pcap)
@@ -67,7 +67,7 @@ func Openlive(device string, snaplen int32, promisc bool, timeout_ms int32) (han
}
// Openoffline
-func Openoffline(file string) (handle *Pcap, err string) {
+func OpenOffline(file string) (handle *Pcap, err string) {
var buf *C.char
buf = (*C.char)(C.calloc(ERRBUF_SIZE, 1))
h := new(Pcap)
Please sign in to comment.
Something went wrong with that request. Please try again.