Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/procfs Fix a signed/unsigned comparison warning.



details:   https://anonhg.NetBSD.org/src/rev/6c644cdcb5bb
branches:  trunk
changeset: 539069:6c644cdcb5bb
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Nov 07 08:21:36 2002 +0000

description:
Fix a signed/unsigned comparison warning.

diffstat:

 sys/miscfs/procfs/procfs_subr.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 213d93ca6051 -r 6c644cdcb5bb sys/miscfs/procfs/procfs_subr.c
--- a/sys/miscfs/procfs/procfs_subr.c   Thu Nov 07 08:13:10 2002 +0000
+++ b/sys/miscfs/procfs/procfs_subr.c   Thu Nov 07 08:21:36 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: procfs_subr.c,v 1.40 2001/12/05 00:58:05 thorpej Exp $ */
+/*     $NetBSD: procfs_subr.c,v 1.41 2002/11/07 08:21:36 thorpej Exp $ */
 
 /*
  * Copyright (c) 1994 Christopher G. Demetriou.  All rights reserved.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_subr.c,v 1.40 2001/12/05 00:58:05 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_subr.c,v 1.41 2002/11/07 08:21:36 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -356,8 +356,7 @@
 {
        struct pfsnode *pp;
        struct pfs_hashhead *oldhash, *hash;
-       u_long oldmask, mask, val;
-       int i;
+       u_long i, oldmask, mask, val;
 
        hash = hashinit(desiredvnodes / 4, HASH_LIST, M_UFSMNT, M_WAITOK,
            &mask);



Home | Main Index | Thread Index | Old Index