Date: Tue, 3 Jun 2008 14:31:57 GMT From: Rui Paulo <rpaulo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 142813 for review Message-ID: <200806031431.m53EVvv7062902@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=142813 Change 142813 by rpaulo@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806031431.m53EVvv7062902>