Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet In ip_reass_ttl_descr, make i signed since it's ...



details:   https://anonhg.NetBSD.org/src/rev/e868442ac3ab
branches:  trunk
changeset: 565219:e868442ac3ab
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Apr 01 22:47:55 2004 +0000

description:
In ip_reass_ttl_descr, make i signed since it's compared to >= 0

diffstat:

 sys/netinet/ip_input.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r d3ae8567b883 -r e868442ac3ab sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c    Thu Apr 01 22:14:48 2004 +0000
+++ b/sys/netinet/ip_input.c    Thu Apr 01 22:47:55 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_input.c,v 1.197 2004/03/24 15:34:54 atatat Exp $    */
+/*     $NetBSD: ip_input.c,v 1.198 2004/04/01 22:47:55 matt Exp $      */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -98,7 +98,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.197 2004/03/24 15:34:54 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.198 2004/04/01 22:47:55 matt Exp $");
 
 #include "opt_inet.h"
 #include "opt_gateway.h"
@@ -1288,9 +1288,9 @@
 static u_int
 ip_reass_ttl_decr(u_int ticks)
 {
-       u_int i, nfrags, median;
+       u_int nfrags, median, dropfraction, keepfraction;
        struct ipq *fp, *nfp;
-       u_int dropfraction, keepfraction;
+       int i;
        
        nfrags = 0;
        memset(fragttl_histo, 0, sizeof fragttl_histo);



Home | Main Index | Thread Index | Old Index