aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2023-08-08 15:16:01 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2023-08-09 13:07:21 +0000
commit467c791a968881220f827fe4703e362506d26078 (patch)
tree8905dfa463ba7b3d2aa9b6bd7618d878c0ea4023
parent0832de3e5d8c2c440f970cdbabb41ec64c00e22d (diff)
downloadports-467c791a968881220f827fe4703e362506d26078.tar.gz
ports-467c791a968881220f827fe4703e362506d26078.zip
sysutils/testdisk: fix build with NTFS option
A benign type mismatch in a function pointer only used when compiled with the NTFS option was disagreeable to LLVM 16. Patch things over by correcting the signature. Reported by: Ale <discipline@tiscali.it> PR: 272982 MFH: 2023Q3 (cherry picked from commit f5fac239219bdd6b380b7bad35be559d29871ef1)
-rw-r--r--sysutils/testdisk/files/patch-src_ntfs__io.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/testdisk/files/patch-src_ntfs__io.c b/sysutils/testdisk/files/patch-src_ntfs__io.c
new file mode 100644
index 000000000000..d7d05472edb5
--- /dev/null
+++ b/sysutils/testdisk/files/patch-src_ntfs__io.c
@@ -0,0 +1,11 @@
+--- src/ntfs_io.c.orig 2023-08-08 15:12:08 UTC
++++ src/ntfs_io.c
+@@ -154,7 +154,7 @@ static int ntfs_device_testdisk_io_stat(struct ntfs_de
+ return -1;
+ }
+
+-static int ntfs_device_testdisk_io_ioctl(struct ntfs_device *dev, int request,
++static int ntfs_device_testdisk_io_ioctl(struct ntfs_device *dev, unsigned long request,
+ void *argp)
+ {
+ log_warning( "ntfs_device_testdisk_io_ioctl() unimplemented\n");