public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] iconv: sync mkdeps.pl with aliasesbi.c changes
@ 2022-01-18  2:59 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2022-01-18  2:59 UTC (permalink / raw)
  To: newlib

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-18  2:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18  2:59 [PATCH] iconv: sync mkdeps.pl with aliasesbi.c changes Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).