From nobody Mon May 20 04:08:37 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 4VjPFK4QWbz5LhT1; Mon, 20 May 2024 04:08:37 +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 4VjPFK1s9Cz4Ccc; Mon, 20 May 2024 04:08:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716178117; 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=jCRt0RqzQxofSGaFHaZAd0xGEa3LEHIX4OEhtihoebI=; b=La3LhFj3zPQ7IQOO7fYV/bGdo6VawsHvukdngmpaOWqyreU0+uWaKKX/NdUo7n490Jci3V eT7thVooXFosNEt8MDiSrNIWByMbh4uV28qbHEwAgqTh36xI8iyg7N8OXVjkFu1hEeP+8z PoKdbBAaV6fM7QrhFcRGS4kT7ntcgf4jwATDN8AWQspOweBJnnb7eL8NB0LoHRkKS4RlKf R3kt9Bo9K/3zCf+c0sRINCwE84+M/c5X9p/8AXhTiNXREQgePU+BXwRxzPWlgZ2ZMyRjY6 fngGW6a9QVoIwvqUepDN/ZEQvkS5/YGP+x5EGCeD5HJCYhdKMr3SN30iP1Pr6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716178117; a=rsa-sha256; cv=none; b=PAU55xAGmMlrgo6wm1EjyZ6Gcv7+e6YsCP4t37iqCfDAz3J/z2teqfH1JJjalZ9RImgnWz dBg91EeuANS+tHEx95wuA3p5e5hjCKomGTCZWlgdqADLW/Jn1uYXZRWK0s0tXBq2hL/MxN vOxIx3ResfZLkf/phH9pr7J0zxcYf4cLBhfxLJObtU+rCUQt/hFWQ06fAqf2vSXzMrCSJC u5thMH6pa8NgSpxnDfyszw6YNXtqzuu1x45txLWgSPE6NSzXRYu7vEYDJt7uZyjflim300 RW5T8HEHmt2wispvEbimCQvx/YFlHvQNxsFY/D10WiPGbAeiTSY0mUEjjw9rGA== 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=1716178117; 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=jCRt0RqzQxofSGaFHaZAd0xGEa3LEHIX4OEhtihoebI=; b=Na8cWrSRMprlNRlkW3lDahrxD4HTfHRwRY8e3v8DbLDEC2B9OnAuG3iLDq/mIR1hZMIXGq +1CGl1lc4MulwYOzXl2nD1BL2v0SA1n+nM3DdGlLx1envKOVhMUyjmYvHjFQ6M0gFPuIUP 5a3WJR2fRx/hK2eXpypSSle4uzne1DsmKpVVchNBdqlxPavyL+Mh1sxw0MAfYf6UaPzifX RBEHdqM89l+x4y5MVs7qh1YnzgJyHi5q126i41Q14lwKcc2h6kYRm8+SqOY4n5+qdNX6sS tw7MXlhac9BtjwS2Hbm+r3GzTJErxhIWtD1dhHmx4u8eXrxPo4IpE7JTB/Vc4w== 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 4VjPFK1TCKzNbj; Mon, 20 May 2024 04:08:37 +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 44K48bWC081200; Mon, 20 May 2024 04:08:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44K48boO081197; Mon, 20 May 2024 04:08:37 GMT (envelope-from git) Date: Mon, 20 May 2024 04:08:37 GMT Message-Id: <202405200408.44K48boO081197@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: f989ebd4dea2 - main - kboot: Use C99 initialiers for hostconsole. 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: f989ebd4dea2ad45f3dd491d86f821a524a0360f Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=f989ebd4dea2ad45f3dd491d86f821a524a0360f commit f989ebd4dea2ad45f3dd491d86f821a524a0360f Author: Warner Losh AuthorDate: 2024-05-19 20:47:20 +0000 Commit: Warner Losh CommitDate: 2024-05-20 04:05:41 +0000 kboot: Use C99 initialiers for hostconsole. Sponsored by: Netflix --- stand/kboot/kboot/hostcons.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/stand/kboot/kboot/hostcons.c b/stand/kboot/kboot/hostcons.c index 114188adcff2..9c09a2721891 100644 --- a/stand/kboot/kboot/hostcons.c +++ b/stand/kboot/kboot/hostcons.c @@ -35,14 +35,13 @@ static int hostcons_getchar(void); static int hostcons_poll(void); struct console hostconsole = { - "host", - "Host Console", - 0, - hostcons_probe, - hostcons_init, - hostcons_putchar, - hostcons_getchar, - hostcons_poll, + .c_name = "host", + .c_desc = "Host Console", + .c_probe = hostcons_probe, + .c_init = hostcons_init, + .c_out = hostcons_putchar, + .c_in = hostcons_getchar, + .c_ready = hostcons_poll, }; static struct host_termios old_settings;