From nobody Tue Dec 28 17:51:13 2021 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E7D5A190F985; Tue, 28 Dec 2021 17:51:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JNhst2ksqz3DyW; Tue, 28 Dec 2021 17:51:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4B5621611B; Tue, 28 Dec 2021 17:51:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BSHpDZg053643; Tue, 28 Dec 2021 17:51:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BSHpDZu053642; Tue, 28 Dec 2021 17:51:13 GMT (envelope-from git) Date: Tue, 28 Dec 2021 17:51:13 GMT Message-Id: <202112281751.1BSHpDZu053642@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 5a37560e442f - main - sys/libkern: Use C99 fixed-width integer types. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5a37560e442fefc07b406fd9845043a1bf8e6c5b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640713874; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PJ5rJPJDmNxdBDdh4bTGzh/mns3Bt8UPphDjahG5w2s=; b=mfqNst5gKUOvLA1q2X5+VE+SVfQBYUrpXTEPVipTJBVF/zfHWyAbfKj57gn/hfovNtyYkM 8HsXV2mbqrqSlVJUleLS8rUm5BBIH9Ls+HNK2gegLp/sbBpgLoRc7ml9bP61W3tfR2mY3H U0lLL9z4MZWxNv8gYD2r9NuCHO3rO79k8NRF96wTxqwFhAAb7EHq0yzERGZz07kOcRAiht 5gmalabLqIGusM+LIFsI8xNSEvX1bs61yOW4YrOde+bHcxDqGCghhYbRh09SF+N/fmIspf DsYQVwXNIFfqDhnkKu1Pg3ZBFppHtUBPTgZ0aGb3WRRlwhfqG/VW4XYFrOC/FA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640713875; a=rsa-sha256; cv=none; b=bM9Rd4XdbJnx418ag5rmD1qxF7EYnCv4en7NLDR0GEfB0gDw+IFis1qcMkPPKKWtjf4/6P 0xn/Sf9aj0U057y/7Lhzz8cVwnl1Hlx4cinjaFExaji4c6mhJU1lowN182kTRIGW9pPh8o tIcmXTM6gLwV8gd3XekT+PV4JLMx66eePm+297yCsiCA2FWFIaI57BKH0jiACXyNkzhqsP GilE69Uqo6ARtRY/cXY9bR5kmwfSIesci+RB/sEZR5m9juPTZg+/QX20s2p748aJPpW4sa lArMxEVR74D3hnKjx9W1o4QtEYIa3wPXuFg3XTCEiT/cnOEveddVYaEd9SJyPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=5a37560e442fefc07b406fd9845043a1bf8e6c5b commit 5a37560e442fefc07b406fd9845043a1bf8e6c5b Author: John Baldwin AuthorDate: 2021-12-28 17:42:11 +0000 Commit: John Baldwin 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))