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 Redo previous differently.



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

description:
Redo previous differently.

diffstat:

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

diffs (29 lines):

diff -r d0ef29d841ec -r c6b34b9ca0fa regress/sys/kern/nameibench/nameibench.c
--- a/regress/sys/kern/nameibench/nameibench.c  Sat Nov 23 20:37:05 2019 +0000
+++ b/regress/sys/kern/nameibench/nameibench.c  Sat Nov 23 20:37:49 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nameibench.c,v 1.2 2019/11/23 20:37:05 ad Exp $        */
+/*     $NetBSD: nameibench.c,v 1.3 2019/11/23 20:37:49 ad Exp $        */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -51,8 +51,8 @@
 };
 
 char   **sa;
-int    sasize;
-int    sacnt;
+u_int  sasize;
+u_int  sacnt;
 struct timespec sts;
 struct timespec ets;
 pthread_barrier_t      barrier;
@@ -103,7 +103,7 @@
 static void
 lookups(int idx)
 {
-       int p, c;
+       u_int p, c;
 
        for (c = 0, p = 0; !stop; c++) {
                p += primes[idx];



Home | Main Index | Thread Index | Old Index