Netdev List
 help / color / mirror / Atom feed
* [PATCH] rstp: Fix compiler type-punning error in rstp daemon
@ 2010-03-03 13:53 Neil Horman
  0 siblings, 0 replies; only message in thread
From: Neil Horman @ 2010-03-03 13:53 UTC (permalink / raw)
  To: shemminger; +Cc: netdev

Hey-
	Was trying to build the rstp daemon today and got a type-punning error
in bridge_track.c.  This patch fixes it up.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>


 bridge_track.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/bridge_track.c b/bridge_track.c
index be555de..fa59732 100644
--- a/bridge_track.c
+++ b/bridge_track.c
@@ -599,7 +599,7 @@ void bridge_bpdu_rcv(int if_index, const unsigned char *data, int len)
 		//    TST(ntohs(*(uint16_t*)bpdu.body.message_age)
 		//        < ntohs(*(uint16_t*)bpdu.body.max_age), );
 		TST(memcmp(bpdu->body.bridge_id, &ifc->master->bridge_id, 8) != 0
-		    || (ntohs(*(uint16_t *) bpdu->body.port_id) & 0xfff) !=
+		    || (ntohs((uint16_t) *bpdu->body.port_id) & 0xfff) !=
 		    ifc->port_index,);
 		break;
 	case BPDU_TOPO_CHANGE_TYPE:

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

only message in thread, other threads:[~2010-03-03 13:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-03 13:53 [PATCH] rstp: Fix compiler type-punning error in rstp daemon Neil Horman

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