Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Eliminate remaining cases of u_int*_t in kern_rndq.c.



details:   https://anonhg.NetBSD.org/src/rev/ea589404c1d2
branches:  trunk
changeset: 807568:ea589404c1d2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Apr 14 12:28:12 2015 +0000

description:
Eliminate remaining cases of u_int*_t in kern_rndq.c.

diffstat:

 sys/kern/kern_rndq.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r ee6c07c13f49 -r ea589404c1d2 sys/kern/kern_rndq.c
--- a/sys/kern/kern_rndq.c      Tue Apr 14 12:27:02 2015 +0000
+++ b/sys/kern/kern_rndq.c      Tue Apr 14 12:28:12 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_rndq.c,v 1.49 2015/04/14 12:25:41 riastradh Exp $ */
+/*     $NetBSD: kern_rndq.c,v 1.50 2015/04/14 12:28:12 riastradh Exp $ */
 
 /*-
  * Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.49 2015/04/14 12:25:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.50 2015/04/14 12:28:12 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -101,7 +101,7 @@
        int             cursor;
        int             entropy;
        uint32_t        ts[RND_SAMPLE_COUNT];
-       u_int32_t       values[RND_SAMPLE_COUNT];
+       uint32_t        values[RND_SAMPLE_COUNT];
 } rnd_sample_t;
 
 SIMPLEQ_HEAD(rnd_sampleq, _rnd_sample_t);
@@ -847,8 +847,8 @@
 }
 
 static void
-rnd_add_data_ts(krndsource_t *rs, const void *const data, u_int32_t len,
-               u_int32_t entropy, uint32_t ts)
+rnd_add_data_ts(krndsource_t *rs, const void *const data, uint32_t len,
+    uint32_t entropy, uint32_t ts)
 {
        rnd_sample_t *state = NULL;
        const uint8_t *p = data;
@@ -1022,7 +1022,7 @@
        rnd_sample_t *sample = NULL;
        krndsource_t *source, *badsource = NULL;
        static krndsource_t *last_source;
-       u_int32_t entropy;
+       uint32_t entropy;
        size_t pool_entropy;
        int found = 0, wake = 0;
        struct rnd_sampleq dq_samples = SIMPLEQ_HEAD_INITIALIZER(dq_samples);
@@ -1149,7 +1149,7 @@
 }
 
 static uint32_t
-rnd_extract_data(void *p, u_int32_t len, u_int32_t flags)
+rnd_extract_data(void *p, uint32_t len, uint32_t flags)
 {
        static int timed_in;
        int entropy_count;



Home | Main Index | Thread Index | Old Index