/*
* 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;
* 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>
+#include <stdio.h>
#include <curses.h>
#include <console.h>
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <console.h>
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <stdio.h>
#include <console.h>
#include <latch.h>
#include <gpxe/shell_banner.h>
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
#include <string.h>
#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 ) \
*/
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;
* 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 {
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;
}