git: 5a37560e442f - main - sys/libkern: Use C99 fixed-width integer types.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 28 Dec 2021 17:51:13 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=5a37560e442fefc07b406fd9845043a1bf8e6c5b

commit 5a37560e442fefc07b406fd9845043a1bf8e6c5b
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-12-28 17:42:11 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-12-28 17:42:11 +0000

    sys/libkern: Use C99 fixed-width integer types.
    
    No functional change.
    
    Reviewed by:    imp, emaste
    Differential Revision:  https://reviews.freebsd.org/D33637
---
 sys/libkern/arc4random.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/libkern/arc4random.c b/sys/libkern/arc4random.c
index fd362dd83608..06831527f3c5 100644
--- a/sys/libkern/arc4random.c
+++ b/sys/libkern/arc4random.c
@@ -66,7 +66,7 @@ struct chacha20_s {
 	struct mtx mtx;
 	int numbytes;
 	time_t t_reseed;
-	u_int8_t m_buffer[CHACHA20_BUFFER_SIZE];
+	uint8_t m_buffer[CHACHA20_BUFFER_SIZE];
 	struct chacha_ctx ctx;
 #ifdef RANDOM_FENESTRASX
 	uint64_t seed_version;
@@ -87,7 +87,7 @@ static void
 chacha20_randomstir(struct chacha20_s *chacha20)
 {
 	struct timeval tv_now;
-	u_int8_t key[CHACHA20_KEYBYTES];
+	uint8_t key[CHACHA20_KEYBYTES];
 #ifdef RANDOM_FENESTRASX
 	uint64_t seed_version;
 
@@ -199,7 +199,7 @@ arc4rand(void *ptr, u_int len, int reseed)
 	struct chacha20_s *chacha20;
 	struct timeval tv;
 	u_int length;
-	u_int8_t *p;
+	uint8_t *p;
 
 #ifdef RANDOM_FENESTRASX
 	if (__predict_false(reseed))