testdisk: fix gcc-14 build
fix incompatible pointer type by updating a function definition ntfs_device_testdisk_io_ioctl to take an unsigned long rather than an int. The function implementation is empty and just returns error so the updated argument type has no effect.
This commit is contained in:
@@ -33,6 +33,10 @@ assert enableQt -> qwt != null;
|
||||
sha256 = "1zlh44w67py416hkvw6nrfmjickc2d43v51vcli5p374d5sw84ql";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./gcc-14-fixes.diff
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace linux/qphotorec.desktop \
|
||||
--replace "/usr" "$out"
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
diff --git a/src/ntfs_io.c b/src/ntfs_io.c
|
||||
index 7f57edd..4b718bb 100644
|
||||
--- a/src/ntfs_io.c
|
||||
+++ b/src/ntfs_io.c
|
||||
@@ -154,8 +154,8 @@ static int ntfs_device_testdisk_io_stat(struct ntfs_device *dev, struct stat *bu
|
||||
return -1;
|
||||
}
|
||||
|
||||
-static int ntfs_device_testdisk_io_ioctl(struct ntfs_device *dev, int request,
|
||||
- void *argp)
|
||||
+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");
|
||||
#ifdef ENOTSUP
|
||||
Reference in New Issue
Block a user