Skip to content
Browse files

removed node-waf call from package install, fixed array assignment c+…

…+ error
  • Loading branch information...
1 parent 4a1ef5b commit a31035080321feaa6bffa99618cbfc8bd170cf6e @icing icing committed
Showing with 2 additions and 3 deletions.
  1. +1 −2 package.json
  2. +1 −1 pcap_binding.cc
View
3 package.json
@@ -6,6 +6,5 @@
"repository": {
"type": "git",
"url": "git://github.com/mranney/node_pcap.git"
- },
- "scripts": { "install": "node-waf configure clean build" }
+ }
}
View
2 pcap_binding.cc
@@ -64,7 +64,7 @@ void PacketReady(u_char *callback_p, const struct pcap_pkthdr* pkthdr, const u_c
packet_header->Set(String::New("caplen"), Integer::NewFromUnsigned(pkthdr->caplen));
packet_header->Set(String::New("len"), Integer::NewFromUnsigned(pkthdr->len));
- Local<Value> argv[1] = packet_header;
+ Local<Value> argv[1] = { packet_header };
(*callback)->Call(Context::GetCurrent()->Global(), 1, argv);

0 comments on commit a310350

Please sign in to comment.
Something went wrong with that request. Please try again.