Skip to content

Commit

Permalink
sysutils/testdisk: fix build with NTFS option
Browse files Browse the repository at this point in the history
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
  • Loading branch information
clausecker committed Aug 9, 2023
1 parent 70525b5 commit f5fac23
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 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");

0 comments on commit f5fac23

Please sign in to comment.