Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp548504pxv; Thu, 15 Jul 2021 10:01:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyii+QDUElgKz9bct+QkXKon8ZhtDA9a+I4edN7JS2dnP64hiyK602L8+nPJeEo76yzD+Fs X-Received: by 2002:a50:9b06:: with SMTP id o6mr8564076edi.284.1626368484709; Thu, 15 Jul 2021 10:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626368484; cv=none; d=google.com; s=arc-20160816; b=k7F/c+oalF1KE0lCpYh1WOqygnbnUAVtBjexV48bIF1Buv9jLuccvMVm5OJIo6pE2P UD/Hy2vlqeR6Yd0SnqFfcYr85HE/2Te0Sl44udBpeo7kccFQe6DM1j2I30Rnem06V5JY ZAwr+AxBZ8dXVejw1FYhgY/6u8z/5hdRoFZqcmNRG+eoI13LrClACmqsLD5YXHrRpEsZ rCmu7bIzbYOibRqeRGN82FUId3t21ODq2JeRWzXoEsb++gKxZjcSxHXWdbvYdj8l6rWX +fIFOVauvVKge6BmJ/gKQ51fNr5fUQ1AV0kYkpDBNdjdcMBAxZGVQAMj8BsrEr/N8mS/ Q2vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=WBJgrOW3MINuGhTOEsZu5eF68Bgr1H9uid+GCE87DZc=; b=NrXRGLiDDp9LheOYnJRr9ra3sjBb4bpGZTF0BaPE8IwYFoUbnIz6akpO+FOoq3k09H ojgETtOFy2vTYC6ja1Ks44Jkr4ctgJuU0ieivA02VgDnuYHUs3wI4IEn0rOZoSs+pio0 S4YETgcPSkICOczQLal7BeeUDW/GZ076A98FNEwaBDHkR95yANysyCVhTtOJnoL/Za8g lTOheHN1UJxD/OoeitKyFw7YEDXHi3PmjCSL5gYFdr+ZdvybkgBFs+eesJT2lhikM77n 6lzOIY43b3Hs56WNbWqxya1M3j7/ScTKU8D94JlO9KSgqE64hKHbrdy372/GRA89CSS/ bYTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@canonical.com header.s=20210705 header.b=cIToF8MA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bj22si8006860ejb.53.2021.07.15.10.01.00; Thu, 15 Jul 2021 10:01:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@canonical.com header.s=20210705 header.b=cIToF8MA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231522AbhGOQeW (ORCPT + 99 others); Thu, 15 Jul 2021 12:34:22 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:47440 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230162AbhGOQeV (ORCPT ); Thu, 15 Jul 2021 12:34:21 -0400 Received: from localhost (1.general.cking.uk.vpn [10.172.193.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id DA24140610; Thu, 15 Jul 2021 16:31:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1626366682; bh=WBJgrOW3MINuGhTOEsZu5eF68Bgr1H9uid+GCE87DZc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=cIToF8MA2D7c+v77Ze3s3Tw89cydPSM/RNOGI8FIGZq1YLvc87fCUF3BH/V5lPRxp IAGM9uIytx99z5xJD04V/jObuu8SZRvtic4JJbllSVK0HUdp/gNenpoSn9CaBBCadp rxJnicqqZptu+ZOoTyMCWxVpdTNPR3c/YBg2ljx9trMw42JLtkMLcW4c0xnXf2NmTN r0T6dTfuIFSFTtNiujnERUmSjAsYwPggc1rn+vZhoxYNgZup39j6AsWSbovZgpe0kj Vshx9nSo6eV0jN9clM5R3mBsh6O8aa7FJmTOqguflC73ABqr47b4eRUDqo6DUUrfuM Msa7wX6fsG0nw== From: Colin King To: array@vger.kernel.org, initializers@vger.kernel.org, Chris Brannon , Kirk Reiser , Samuel Thibault , Greg Kroah-Hartman , speakup@linux-speakup.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] speakup: use C99 syntax for array initializers Date: Thu, 15 Jul 2021 17:31:22 +0100 Message-Id: <20210715163122.62220-1-colin.king@canonical.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The older obsolete array initializer syntax is currently being used for some of the array elements. Fix this by using the preferred C99 array initializers syntax. Fixes: 5b5140bf5182 ("speakup: Separate out translations for bright colors names") Signed-off-by: Colin Ian King --- drivers/accessibility/speakup/i18n.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/accessibility/speakup/i18n.c b/drivers/accessibility/speakup/i18n.c index bc7b47d1876f..d62079b1661f 100644 --- a/drivers/accessibility/speakup/i18n.c +++ b/drivers/accessibility/speakup/i18n.c @@ -90,13 +90,13 @@ static char *speakup_default_msgs[MSG_LAST_INDEX] = { [MSG_COLOR_YELLOW] = "yellow", [MSG_COLOR_WHITE] = "white", [MSG_COLOR_GREY] = "grey", - [MSG_COLOR_BRIGHTBLUE] "bright blue", - [MSG_COLOR_BRIGHTGREEN] "bright green", - [MSG_COLOR_BRIGHTCYAN] "bright cyan", - [MSG_COLOR_BRIGHTRED] "bright red", - [MSG_COLOR_BRIGHTMAGENTA] "bright magenta", - [MSG_COLOR_BRIGHTYELLOW] "bright yellow", - [MSG_COLOR_BRIGHTWHITE] "bright white", + [MSG_COLOR_BRIGHTBLUE] = "bright blue", + [MSG_COLOR_BRIGHTGREEN] = "bright green", + [MSG_COLOR_BRIGHTCYAN] = "bright cyan", + [MSG_COLOR_BRIGHTRED] = "bright red", + [MSG_COLOR_BRIGHTMAGENTA] = "bright magenta", + [MSG_COLOR_BRIGHTYELLOW] = "bright yellow", + [MSG_COLOR_BRIGHTWHITE] = "bright white", /* Names of key states. */ [MSG_STATE_DOUBLE] = "double", -- 2.31.1