From c77704cb60731a8d4b3c5301720aeacfad83592f Mon Sep 17 00:00:00 2001 From: Marty Connor Date: Tue, 3 Jul 2007 13:20:22 -0400 Subject: Warnings purge: src/{crypto,hci,net} --- src/net/ipv6.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net') diff --git a/src/net/ipv6.c b/src/net/ipv6.c index 86074065f..3b7429b86 100644 --- a/src/net/ipv6.c +++ b/src/net/ipv6.c @@ -204,7 +204,7 @@ static int ipv6_tx ( struct io_buffer *iobuf, */ next_hop = dest->sin6_addr; list_for_each_entry ( miniroute, &miniroutes, list ) { - if ( ( strncmp ( &ip6hdr->dest, &miniroute->prefix, + if ( ( memcmp ( &ip6hdr->dest, &miniroute->prefix, miniroute->prefix_len ) == 0 ) || ( IP6_EQUAL ( miniroute->gateway, ip6_none ) ) ) { netdev = miniroute->netdev; @@ -295,8 +295,8 @@ static int ipv6_process_nxt_hdr ( struct io_buffer *iobuf, uint8_t nxt_hdr, * This function processes a IPv6 packet */ static int ipv6_rx ( struct io_buffer *iobuf, - struct net_device *netdev, - const void *ll_source ) { + __unused struct net_device *netdev, + __unused const void *ll_source ) { struct ip6_header *ip6hdr = iobuf->data; union { @@ -316,7 +316,7 @@ static int ipv6_rx ( struct io_buffer *iobuf, ipv6_dump ( ip6hdr ); /* Check header version */ - if ( ip6hdr->ver_traffic_class_flow_label & 0xf0000000 != 0x60000000 ) { + if ( ( ip6hdr->ver_traffic_class_flow_label & 0xf0000000 ) != 0x60000000 ) { DBG ( "Invalid protocol version\n" ); goto drop; } -- cgit v1.2.3-55-g7522