From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id ADCB93858034 for ; Tue, 18 Jan 2022 02:59:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ADCB93858034 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 677DA342FCA; Tue, 18 Jan 2022 02:59:41 +0000 (UTC) From: Mike Frysinger To: newlib@sourceware.org Subject: [PATCH] iconv: sync mkdeps.pl with aliasesbi.c changes Date: Mon, 17 Jan 2022 21:59:39 -0500 Message-Id: <20220118025939.24703-1-vapier@gentoo.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2022 02:59:44 -0000 Some changes were made to aliasesbi.c, but not to this file which dynamically generates it. Add those fixes to this file too. --- newlib/libc/iconv/ces/mkdeps.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/newlib/libc/iconv/ces/mkdeps.pl b/newlib/libc/iconv/ces/mkdeps.pl index d78dfe8f84cc..68f090b0e728 100755 --- a/newlib/libc/iconv/ces/mkdeps.pl +++ b/newlib/libc/iconv/ces/mkdeps.pl @@ -584,8 +584,8 @@ sub generate_aliasesbi_c($) print ALIASESBI_C "$comment_automatic\n\n"; print ALIASESBI_C "#include <_ansi.h>\n"; print ALIASESBI_C "#include \"encnames.h\"\n\n"; - print ALIASESBI_C "const char *\n"; - print ALIASESBI_C "$var_aliases =\n"; + print ALIASESBI_C "const char\n"; + print ALIASESBI_C "$var_aliases\[\] =\n"; print ALIASESBI_C "{\n"; foreach my $enc (sort keys %{$_[0]}) @@ -598,7 +598,7 @@ sub generate_aliasesbi_c($) print ALIASESBI_C "#endif\n"; } print ALIASESBI_C " \"\"\n"; - print ALIASESBI_C "};\n\n"; + print ALIASESBI_C "};\n"; close ALIASESBI_C or err "Error while closing ../lib/aliasesbi.c file."; } -- 2.33.0