veriexec: fix use of getopt

getopt(3) returns int type not char. Using char triggers the
-Wtautological-constant-out-of-range-compare warning with clang.
Change the type of the variable used for holding the return value
of getopt(3) to int to match the prototype and eliminate the warning.

MFC after:	1 week
This commit is contained in:
Stephen J. Kiernan
2023-04-16 20:59:37 -04:00
parent 894bcc876d
commit 1c7ac0c23b
+1 -2
View File
@@ -140,8 +140,7 @@ main(int argc, char *argv[])
{
long long converted_int;
uint32_t state;
char c;
int x;
int c, x;
if (argc < 2)
return (veriexec_usage());