Module Name:    src
Committed By:   riastradh
Date:           Tue Apr 14 12:27:02 UTC 2015

Modified Files:
        src/sys/dev: rndpseudo.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/rndpseudo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/rndpseudo.c
diff -u src/sys/dev/rndpseudo.c:1.29 src/sys/dev/rndpseudo.c:1.30
--- src/sys/dev/rndpseudo.c:1.29	Tue Apr 14 12:25:41 2015
+++ src/sys/dev/rndpseudo.c	Tue Apr 14 12:27:02 2015
@@ -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 @@ static int
 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 @@ rnd_ioctl(struct file *fp, u_long cmd, v
 
 	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;
 

Reply via email to