public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [batctl] Fix compiler warning in tcpdump.c
@ 2009-07-17 10:57 Andrew Lunn
  0 siblings, 0 replies; only message in thread
From: Andrew Lunn @ 2009-07-17 10:57 UTC (permalink / raw)
  To: B.A.T.M.A.N

Compiling batctl/tcpdump.c with gcc version 4.3.3 gives a compiler
warning. Add a cast to fix this.

Signed-off-by: Andrew Lunn <andrew.lunn@ascom.ch>
Index: batctl/tcpdump.c
===================================================================
--- batctl/tcpdump.c	(revision 1347)
+++ batctl/tcpdump.c	(working copy)
@@ -191,7 +191,7 @@
 
 		switch (ntohs(udphdr->dest)) {
 		case 67:
-			LEN_CHECK((size_t)buff_len - (iphdr->ihl * 4) - sizeof(struct udphdr), 44, "DHCP");
+                        LEN_CHECK((size_t)buff_len - (iphdr->ihl * 4) - sizeof(struct udphdr), (size_t) 44, "DHCP");
 			printf("%s.67: BOOTP/DHCP, Request from %s, length %zd\n",
 				inet_ntoa(*(struct in_addr *)&iphdr->daddr),
 				ether_ntoa_long((struct ether_addr *)(((char *)udphdr) + sizeof(struct udphdr) + 28)),

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-17 10:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-17 10:57 [B.A.T.M.A.N.] [batctl] Fix compiler warning in tcpdump.c Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox