PERFORCE change 142813 for review

Rui Paulo rpaulo at FreeBSD.org
Tue Jun 3 14:31:58 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=142813

Change 142813 by rpaulo at rpaulo_epsilon on 2008/06/03 14:31:06

	Add proper casting in pcap_dump() call.

Affected files ...

.. //depot/projects/soc2008/rpaulo-tcpad/dumper.c#3 edit

Differences ...

==== //depot/projects/soc2008/rpaulo-tcpad/dumper.c#3 (text+ko) ====

@@ -23,7 +23,7 @@
  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  *
- * $P4: //depot/projects/soc2008/rpaulo-tcpad/dumper.c#2 $
+ * $P4: //depot/projects/soc2008/rpaulo-tcpad/dumper.c#3 $
  */
 
 #include <string.h>
@@ -60,6 +60,6 @@
 
 	pd = pcap_dump_open(p, path);
 	TAILQ_FOREACH(dp, head, entries)
-		pcap_dump(pd, &dp->pheader, dp->headers);
+		pcap_dump((u_char *)pd, &dp->pheader, dp->headers);
 	pcap_dump_close(pd);
 }


More information about the p4-projects mailing list