diff options
author | Gilles Espinasse <g.esp@free.fr> | 2013-03-30 11:14:56 +0100 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2013-04-09 15:14:45 -0700 |
commit | 6156c97ad50d41fd6a80675d5f746eada592e101 (patch) | |
tree | d3a7614295d65c6b2198e799c35fe2797550a32a | |
parent | 472cc66d26ad91132bd0b6254198d1ba0de892ba (diff) | |
download | libnet-6156c97ad50d41fd6a80675d5f746eada592e101.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.c | 2 |
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, |