From nobody Mon May 20 04:08:44 2024 X-Original-To: dev-commits-src-all@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 4VjPFT2gh9z5LhND; Mon, 20 May 2024 04:08:45 +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 4VjPFT0XwMz4D3V; Mon, 20 May 2024 04:08:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716178125; 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=q8K4Ku9XrLPieB5Dgii060+Pb9U8F1RJqMhtD2z5CCA=; b=r1/1Vm3H02n8d2hlf70YVorYFboirN9iw+xGQzKtWODYZNQnUxtOsRsklDGeMRlRnDLqKk NswOYyQnOj1ne0At4et6Jfs+icOszyx/kdxBHhZ0I0VrJqD5+CXOTuXBUHbMjpu5GOjAlM nzLsFqEekZTBYS1dD7NrUIneLI8OtgOA7ivFYuV06eNoN3NifxESG+R/djTeIWLiSz9z59 d+2BBFOXRZxuOlwdr9gFdTeJZo9sKsKlIb3skdalwdAFN2x0iMoBrUWY8DZQn+R+Kq/LJY rf+HbSar6097mf2XpXIE2aaMdNTdVhs1lqIfCxYoz+5RDYTB8O9ds9+x7muM1w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716178125; a=rsa-sha256; cv=none; b=u9zYyQUmeQi8JmBPVErda/AgNm0FD/GZpATO7s5rB0WfrM8FHA48zaUj1dXMS7JYgXzS4a ZmqhVhRMdcy0NHxy2sP8dkEHA5aj8ZIJ/pUMf0+SRCwO/G2bFWsLnxeUHIGz2dm/ISswqd EmySauvGiZ8V87tM5pQqbPNRSqGcDyT3u6BENZcf+2Mq/ET0HTQIIztngusdGrldVYJdfz SGU+7u2cQJPVxco7I4dMYBdfg699Paldk0dLsgEyXVs58ysrxG1RV+Aboh+aST1x7CkCgi lXobc2R5EOVocCj76zCz6IByr63kFfZ/QdRws9tQShhYs0Wy/rSjymWDEQP8mw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716178125; 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=q8K4Ku9XrLPieB5Dgii060+Pb9U8F1RJqMhtD2z5CCA=; b=uxJMAiSXsUq0dwip8CA7Y9lFf4dstmAV6s2Tf3E+KVZRMkEuAYSBS+4jpnPGBiG1dq5iu6 TyYKDlPu9vZdc2DWXgZ1MU/VZ3KHnXRnyda1Tm+0j2Q2c9qFLQoWsuX6S8EcLILj7vfTsH n3x+h+PATHHYMnjwwGUGvRGZcQCF3fBGRTSWzfBtmZ+mHIAlsDkASZ8qVC5VURTSp1DKop 5SMs7V94qkj5LZXConO/OBMlL8aL0g8Dhp92287rn/apUTYO+XjurDKRxrcU71tuQLuPfJ 6RrEiwGMeY+93/NGnMohLJ7m5+A4S2ww7ESCiAiRqIGRPU7EdfCjQSoBkHIquw== 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 4VjPFT08d9zNK4; Mon, 20 May 2024 04:08:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44K48iFW081538; Mon, 20 May 2024 04:08:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44K48i8Z081535; Mon, 20 May 2024 04:08:44 GMT (envelope-from git) Date: Mon, 20 May 2024 04:08:44 GMT Message-Id: <202405200408.44K48i8Z081535@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 125b181674e8 - main - userboot: Use C99 Initializers for each of the consoles here List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 125b181674e894baebfe463ed097305329427a2e Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=125b181674e894baebfe463ed097305329427a2e commit 125b181674e894baebfe463ed097305329427a2e Author: Warner Losh AuthorDate: 2024-05-19 21:03:34 +0000 Commit: Warner Losh CommitDate: 2024-05-20 04:05:42 +0000 userboot: Use C99 Initializers for each of the consoles here Sponsored by: Netflix --- stand/userboot/userboot/userboot_cons.c | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/stand/userboot/userboot/userboot_cons.c b/stand/userboot/userboot/userboot_cons.c index a905f1397232..26c89dc2a37e 100644 --- a/stand/userboot/userboot/userboot_cons.c +++ b/stand/userboot/userboot/userboot_cons.c @@ -42,14 +42,13 @@ static int userboot_cons_getchar(void); static int userboot_cons_poll(void); struct console userboot_console = { - "userboot", - "userboot", - 0, - userboot_cons_probe, - userboot_cons_init, - userboot_cons_putchar, - userboot_cons_getchar, - userboot_cons_poll, + .c_name = "userboot", + .c_desc = "userboot", + .c_probe = userboot_cons_probe, + .c_init = userboot_cons_init, + .c_out = userboot_cons_putchar, + .c_in = userboot_cons_getchar, + .c_ready = userboot_cons_poll, }; /* @@ -57,14 +56,13 @@ struct console userboot_console = { * console to comconsole without resulting in an error */ struct console userboot_comconsole = { - "comconsole", - "comconsole", - 0, - userboot_comcons_probe, - userboot_comcons_init, - userboot_cons_putchar, - userboot_cons_getchar, - userboot_cons_poll, + .c_name = "comconsole", + .c_desc = "comconsole", + .c_probe = userboot_comcons_probe, + .c_init = userboot_comcons_init, + .c_out = userboot_cons_putchar, + .c_in = userboot_cons_getchar, + .c_ready = userboot_cons_poll, }; static void