iconv: Fix tablegen iconv test utility on arm64

Previously it would loop indefinitely on getopt_long(3)
due to 'char' being unsigned.

Reviewed By:	allanjude
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D31817
This commit is contained in:
Edward Tomasz Napierala 2021-09-06 15:44:59 +01:00
parent c6da134591
commit 0016b7da34

View File

@ -200,7 +200,7 @@ main (int argc, char *argv[])
struct iconv_fallbacks fbs;
iconv_t cd;
char *tocode;
char c;
int c;
while (((c = getopt_long(argc, argv, optstr, long_options, NULL)) != -1)) {
switch (c) {