From nobody Mon May 20 04:08:43 2024 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 4VjPFS339dz5LhG9; Mon, 20 May 2024 04:08:44 +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 4VjPFS04jQz4D3D; Mon, 20 May 2024 04:08:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716178124; 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=Uc0Pt8qa55POHJ0XaeRuGN1caRpnp5fg8eWNhb+VuUE=; b=rArzXegibMGRE0rGPvLF2d/aP/yvukbp53umaJNoEmzh7RwkF2n2zyDR2M44ZIMHwE5emX 2fQv2cS03NI3ayQ9XMX/4S6fobI6CctPM/54bGUOwZ/UoPl4bZe+d+TIWYoQaMuab0beSt 0Nt24UmenzUf3tN69BVrYOfVl1e7zDxcz0gaEJjHwsIy1mAr7wTU8VqrWPRZ7JvmjQKS0h YsiRMLRC4osPMQLC+MfFnqdT0eS/jKEaBypGfIKh8zkSL3THPZdhMs/fDkKkiVWCYMgSTv erLjR7tYZ7uWeJlEF2iNcHqKL4zEnQSl9KJ16tL9oBhvED66pBLZgffO0s71NQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716178124; a=rsa-sha256; cv=none; b=O5IcKDZYr0mR9aQwFvkobLhipCRt3WfN9PvocJop31nQl4zNTlixTtci8zF2XRaTbz1DZa aaeOKD7HKJ9ch32rl+SOsJx3avf8Y9JB37cgPSnE595ZKcWKc+MSSbeC+62gYN1/tGQQGP q6zGZK/AfjBloRUD2LZiTk6JVmce6L4WZfAyzG7Opc3sKL6YR2J9tqsrgRfwzY+sJnf0XZ CVG4CbAbAAsyN1pxIL94BxFHT5KXT7zxjMlFJkQSF8IirOllU3hhk+KBy1NlTBJDmvLwcj OV3CGZ+m18HQS7oMkwpz7FLQfPHw+LfbSL3yw6Ke+rxEeaXggnSc0fkGlEpW3A== 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=1716178124; 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=Uc0Pt8qa55POHJ0XaeRuGN1caRpnp5fg8eWNhb+VuUE=; b=uqf98fDP/iz974/XI8990tahATRNr12ENC5qGaC5FS0ndw8v255BybFmWFQ+zG59tIEpkw rpCv1cDS9U+qQy3otVjB5T/+lkjgenKVQG0kAygp0KSq7MQ2SZmasE+3+JU4gCJjmcEOAv YVbue/b2JS0oAHCDlUj8470/thYm+p6q+Os4v/5UHPhvBEpRkIn8bGDpHhyurcDuYeodvb uiOd4rHPlMw/gHsJkDBuJYrrKuKpzjzL06pEizNMf4bZkNmIpHKE3K2knlFGENHX8dLkJn vkapOgkhvgHtAG9YmojN/+Y/rqN15WxBimjYgNmLBRksCG2TS3M4ppgl8eyOPg== 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 4VjPFR6nnTzNHK; Mon, 20 May 2024 04:08:43 +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 44K48hxa081476; Mon, 20 May 2024 04:08:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44K48hA6081473; Mon, 20 May 2024 04:08:43 GMT (envelope-from git) Date: Mon, 20 May 2024 04:08:43 GMT Message-Id: <202405200408.44K48hA6081473@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: 1f180d0a404a - main - ofw: Use C99 initializers for the console struct 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: 1f180d0a404a700889e40a91bbe21c20f310da4a Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=1f180d0a404a700889e40a91bbe21c20f310da4a commit 1f180d0a404a700889e40a91bbe21c20f310da4a Author: Warner Losh AuthorDate: 2024-05-19 21:01:23 +0000 Commit: Warner Losh CommitDate: 2024-05-20 04:05:42 +0000 ofw: Use C99 initializers for the console struct Sponsored by: Netflix --- stand/libofw/ofw_console.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/stand/libofw/ofw_console.c b/stand/libofw/ofw_console.c index b0ead0aba198..4fbd43d3f612 100644 --- a/stand/libofw/ofw_console.c +++ b/stand/libofw/ofw_console.c @@ -41,14 +41,13 @@ static ihandle_t stdin; static ihandle_t stdout; struct console ofwconsole = { - "ofw", - "Open Firmware console", - 0, - ofw_cons_probe, - ofw_cons_init, - ofw_cons_putchar, - ofw_cons_getchar, - ofw_cons_poll, + .c_cname = "ofw", + .c_desc = "Open Firmware console", + .c_probe = ofw_cons_probe, + .c_init = ofw_cons_init, + .c_out = ofw_cons_putchar, + .c_in = ofw_cons_getchar, + .c_ready = ofw_cons_poll, }; static void