Skip to content

Commit

Permalink
Fix a signed/unsigned comparison warning from GCC 3.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorpej committed Aug 26, 2002
1 parent 4518f5b commit 6b2deb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sys/net/route.c
@@ -1,4 +1,4 @@
/* $NetBSD: route.c,v 1.52 2002/05/12 20:40:12 matt Exp $ */
/* $NetBSD: route.c,v 1.53 2002/08/26 01:42:28 thorpej Exp $ */

/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
Expand Down Expand Up @@ -102,7 +102,7 @@
*/

#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.52 2002/05/12 20:40:12 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.53 2002/08/26 01:42:28 thorpej Exp $");

#include "opt_ns.h"

Expand Down Expand Up @@ -711,7 +711,7 @@ rt_setgate(rt0, dst, gate)
struct sockaddr *dst, *gate;
{
caddr_t new, old;
int dlen = ROUNDUP(dst->sa_len), glen = ROUNDUP(gate->sa_len);
u_int dlen = ROUNDUP(dst->sa_len), glen = ROUNDUP(gate->sa_len);
struct rtentry *rt = rt0;

if (rt->rt_gateway == 0 || glen > ROUNDUP(rt->rt_gateway->sa_len)) {
Expand Down

0 comments on commit 6b2deb6

Please sign in to comment.