2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-26 19:29:04 +00:00

Warnings purge: src/{crypto,hci,net}

This commit is contained in:
Marty Connor 2007-07-03 13:20:22 -04:00
parent 5f92f0bd82
commit c77704cb60
8 changed files with 15 additions and 6 deletions

View File

@ -482,7 +482,7 @@ bigint *bi_divide(BI_CTX *ctx, bigint *u, bigint *v, int is_mod)
/*
* Perform an integer divide on a bigint.
*/
static bigint *bi_int_divide(BI_CTX *ctx, bigint *biR, comp denom)
static bigint *bi_int_divide(__unused BI_CTX *ctx, bigint *biR, comp denom)
{
int i = biR->size - 1;
long_comp r = 0;

View File

@ -16,9 +16,14 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <stddef.h>
#include <string.h>
#include <assert.h>
#include <getopt.h>
#include <gpxe/netdevice.h>
#include <gpxe/command.h>

View File

@ -1,3 +1,4 @@
#include <stdio.h>
#include <curses.h>
#include <console.h>

View File

@ -16,6 +16,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <console.h>

View File

@ -16,6 +16,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <stdio.h>
#include <console.h>
#include <latch.h>
#include <gpxe/shell_banner.h>

View File

@ -16,6 +16,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
#include <string.h>

View File

@ -24,7 +24,7 @@
#define MIN_IOB_LEN MAX_HDR_LEN + 100 /* To account for padding by LL */
#define IP6_EQUAL( in6_addr1, in6_addr2 ) \
( strncmp ( ( char* ) &( in6_addr1 ), ( char* ) &( in6_addr2 ),\
( memcmp ( ( char* ) &( in6_addr1 ), ( char* ) &( in6_addr2 ),\
sizeof ( struct in6_addr ) ) == 0 )
#define IS_UNSPECIFIED( addr ) \

View File

@ -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;
}