summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Espinasse <g.esp@free.fr>2013-03-30 11:14:56 +0100
committerSam Roberts <vieuxtech@gmail.com>2013-04-15 13:54:32 -0700
commitae8a8437f2ef0c75a7aef8e44953168f78ed09e7 (patch)
tree4c310c1b461db0eded638014a99edb1761d1c82a
parent5e65d8ae93577a268b72781b373fd39260aadb80 (diff)
downloadlibnet-ae8a8437f2ef0c75a7aef8e44953168f78ed09e7.tar.gz
libnet: fix i486 sample synflood6 warning
synflood6.c: In function 'main': synflood6.c:157: warning: format '%ld' expects type 'long int', but argument 2 has type 'unsigned int' Signed-off-by: Gilles Espinasse <g.esp@free.fr>
-rw-r--r--libnet/sample/synflood6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnet/sample/synflood6.c b/libnet/sample/synflood6.c
index 68373b3..191e4d6 100644
--- a/libnet/sample/synflood6.c
+++ b/libnet/sample/synflood6.c
@@ -154,7 +154,7 @@ main(int argc, char **argv)
if (build_ip)
{
build_ip = 0;
- printf("Packet len = %ld\n",LIBNET_ICMPV6_H+sizeof(payload));
+ printf("Packet len = %ld\n", (long)LIBNET_ICMPV6_H+sizeof(payload));
libnet_build_ipv6(0,0,
LIBNET_TCP_H,
IPPROTO_TCP,