Source-Changes-HG archive

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

[src/trunk]: src/regress/sys/kern/nameibench Fix compiler warning.



details:   https://anonhg.NetBSD.org/src/rev/d0ef29d841ec
branches:  trunk
changeset: 1004994:d0ef29d841ec
user:      ad <ad%NetBSD.org@localhost>
date:      Sat Nov 23 20:37:05 2019 +0000

description:
Fix compiler warning.

diffstat:

 regress/sys/kern/nameibench/nameibench.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 395f212bdf26 -r d0ef29d841ec regress/sys/kern/nameibench/nameibench.c
--- a/regress/sys/kern/nameibench/nameibench.c  Sat Nov 23 20:27:39 2019 +0000
+++ b/regress/sys/kern/nameibench/nameibench.c  Sat Nov 23 20:37:05 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nameibench.c,v 1.1 2009/01/29 21:24:19 ad Exp $        */
+/*     $NetBSD: nameibench.c,v 1.2 2019/11/23 20:37:05 ad Exp $        */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -103,7 +103,7 @@
 static void
 lookups(int idx)
 {
-       unsigned int p, c;
+       int p, c;
 
        for (c = 0, p = 0; !stop; c++) {
                p += primes[idx];



Home | Main Index | Thread Index | Old Index