mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Use the correct return type for getopt
Use the correct return type for getopt otherwise clang complains about tautological-constant-out-of-range-compare. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Sterling Jensen <sterlingjensen@users.noreply.github.com> Closes #11359
This commit is contained in:
committed by
Brian Behlendorf
parent
489633d99a
commit
2ab24dfded
@@ -457,7 +457,7 @@ main(int argc, char *argv[])
|
||||
int failed_tests = 0;
|
||||
struct timeval tp;
|
||||
zfs_btree_t bt;
|
||||
char c;
|
||||
int c;
|
||||
|
||||
while ((c = getopt(argc, argv, "c:l:n:r:st:")) != -1) {
|
||||
switch (c) {
|
||||
|
||||
Reference in New Issue
Block a user