Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Eliminate last two cases of u_int*_t in rndpseudo.c.



details:   https://anonhg.NetBSD.org/src/rev/4a5cb95c6d09
branches:  trunk
changeset: 337425:4a5cb95c6d09
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Apr 14 12:27:02 2015 +0000

description:
Eliminate last two cases of u_int*_t in rndpseudo.c.

diffstat:

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

diffs (36 lines):

diff -r 9efb9966da51 -r 4a5cb95c6d09 sys/dev/rndpseudo.c
--- a/sys/dev/rndpseudo.c       Tue Apr 14 12:25:41 2015 +0000
+++ b/sys/dev/rndpseudo.c       Tue Apr 14 12:27:02 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rndpseudo.c,v 1.29 2015/04/14 12:25:41 riastradh Exp $ */
+/*     $NetBSD: rndpseudo.c,v 1.30 2015/04/14 12:27:02 riastradh Exp $ */
 
 /*-
  * Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rndpseudo.c,v 1.29 2015/04/14 12:25:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rndpseudo.c,v 1.30 2015/04/14 12:27:02 riastradh Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -432,7 +432,7 @@
 rnd_write(struct file *fp, off_t *offp, struct uio *uio,
           kauth_cred_t cred, int flags)
 {
-       u_int8_t *bf;
+       uint8_t *bf;
        int n, ret = 0, estimate_ok = 0, estimate = 0, added = 0;
 
        ret = kauth_authorize_device(cred,
@@ -600,7 +600,7 @@
 
        case RNDGETENTCNT:
                mutex_spin_enter(&rndpool_mtx);
-               *(u_int32_t *)addr = rndpool_get_entropy_count(&rnd_pool);
+               *(uint32_t *)addr = rndpool_get_entropy_count(&rnd_pool);
                mutex_spin_exit(&rndpool_mtx);
                break;
 



Home | Main Index | Thread Index | Old Index