mirror_zfs/tests/zfs-tests/cmd
Tino Reichardt a0b2a93c41
fix: variable type with zfs-tests/cmd/clonefile.c
Compiling on arm64 freebsd-13.2 and arm64 almalinux-8 brings currently
this error:

```
  CC       tests/zfs-tests/cmd/clonefile.o
tests/zfs-tests/cmd/clonefile.c:166:43: error: result of comparison of \
constant -1 with expression of type 'char' is always true \
[-Werror,-Wtautological-constant-out-of-range-compare]
        while ((c = getopt(argc, argv, "crfdq")) != -1) {
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
1 error generated.
gmake[2]: *** [Makefile:8675: tests/zfs-tests/cmd/clonefile.o] Error 1
```

Fix: use correct variable type `int`.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rob Norris <robn@despairlabs.com>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #15783
2024-01-17 09:06:14 -08:00
..
checksum Remove unused Edon-R variants 2023-03-14 15:59:58 -07:00
file
linux_dos_attributes
.gitignore Fix cloning into mmaped and cached file. 2024-01-17 08:51:07 -08:00
badsend.c
btree_test.c btree: Implement faster binary search algorithm 2023-05-26 10:03:12 -07:00
chg_usr_exec.c
clone_mmap_cached.c Fix cloning into mmaped and cached file. 2024-01-17 08:51:07 -08:00
clone_mmap_write.c ZTS: Test for clone, mmap and write for block cloning 2024-01-16 13:15:10 -08:00
clonefile.c fix: variable type with zfs-tests/cmd/clonefile.c 2024-01-17 09:06:14 -08:00
cp_files.c
ctime.c Linux 6.7 compat: zfs_setattr fix atime update 2024-01-16 14:01:17 -08:00
devname2devid.c
dir_rd_update.c
dosmode_readonly_write.c FreeBSD: Reduce divergence from in-tree sources 2023-10-09 13:27:18 -07:00
draid.c nvpair: Constify string functions 2023-03-14 15:25:50 -07:00
ereports.c nvpair: Constify string functions 2023-03-14 15:25:50 -07:00
get_diff.c
getversion.c
idmap_util.c Support idmapped mount in user namespace 2022-11-08 10:28:56 -08:00
libzfs_input_check.c Teach zpool scrub to scrub only blocks in error log 2023-05-18 11:59:42 -07:00
Makefile.am Fix cloning into mmaped and cached file. 2024-01-17 08:51:07 -08:00
mkbusy.c
mkfile.c
mkfiles.c
mktree.c
mmap_exec.c
mmap_libaio.c Fix declarations of non-global variables 2022-10-18 11:05:32 -07:00
mmap_seek.c
mmap_sync.c Fix buffered/direct/mmap I/O race 2023-02-23 10:57:24 -08:00
mmapwrite.c ZTS: close in mmapwrite.c 2023-01-06 10:52:08 -08:00
nvlist_to_lua.c nvpair: Constify string functions 2023-03-14 15:25:50 -07:00
readmmap.c readmmap.c: fix building with MUSL libc 2023-08-01 09:01:32 -07:00
rename_dir.c
renameat2.c Replace dead opensolaris.org license links 2023-03-14 14:44:01 -07:00
rm_lnkcnt_zero_file.c
send_doall.c
stride_dd.c Fix multiplication converted to larger type 2022-10-28 09:30:37 -07:00
suid_write_to_file.c
threadsappend.c
truncate_test.c
user_ns_exec.c
xattrtest.c
zed_fd_spill-zedlet.c
zfs_diff-socket.c