Fix signed/unsigned comparison warnings from GCC 3.3.

This commit is contained in:
thorpej 2002-08-26 01:36:37 +00:00
parent 3767580d1a
commit 2371f92317
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if.c,v 1.112 2002/07/26 14:11:35 wiz Exp $ */
/* $NetBSD: if.c,v 1.113 2002/08/26 01:36:37 thorpej Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -101,7 +101,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.112 2002/07/26 14:11:35 wiz Exp $");
__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.113 2002/08/26 01:36:37 thorpej Exp $");
#include "opt_inet.h"
@ -250,7 +250,7 @@ if_nulldrain(ifp)
/* Nothing. */
}
int if_index = 1;
u_int if_index = 1;
struct ifnet_head ifnet;
struct ifaddr **ifnet_addrs = NULL;
struct ifnet **ifindex2ifnet = NULL;
@ -797,7 +797,7 @@ if_clone_lookup(name, unitp)
{
struct if_clone *ifc;
const char *cp;
int i;
size_t i;
for (ifc = LIST_FIRST(&if_cloners); ifc != NULL;) {
for (cp = name, i = 0; i < ifc->ifc_namelen; i++, cp++) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: if.h,v 1.81 2002/08/09 22:43:15 soren Exp $ */
/* $NetBSD: if.h,v 1.82 2002/08/26 01:36:37 thorpej Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -728,7 +728,7 @@ extern struct ifnet **ifindex2ifnet;
#if 0
struct ifnet loif[];
#endif
extern int if_index;
extern u_int if_index;
char *ether_sprintf __P((const u_char *));