freebsd-ports/sysutils/testdisk/files/patch-src_ntfs__io.c
Robert Clausecker f5fac23921 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
2023-08-09 15:01:36 +02:00

11 lines
413 B
C

--- 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");