diff options
author | Stephen J. Kiernan <stevek@FreeBSD.org> | 2023-04-17 00:59:37 +0000 |
---|---|---|
committer | Stephen J. Kiernan <stevek@FreeBSD.org> | 2023-04-17 01:02:04 +0000 |
commit | 1c7ac0c23bc12cc7cd5776fa28ebe0582e1bccec (patch) | |
tree | be88064284f8a6c3e5b768c620ee5c32be75c7a4 | |
parent | 894bcc876da9390a02789dba31ab5ec5ec90bc33 (diff) | |
download | src-1c7ac0c23bc12cc7cd5776fa28ebe0582e1bccec.tar.gz src-1c7ac0c23bc12cc7cd5776fa28ebe0582e1bccec.zip |
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
-rw-r--r-- | sbin/veriexec/veriexec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/veriexec/veriexec.c b/sbin/veriexec/veriexec.c index 407100ab48f1..815aaae5e81b 100644 --- a/sbin/veriexec/veriexec.c +++ b/sbin/veriexec/veriexec.c @@ -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()); |