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.

+19
+4
pkgs/tools/system/testdisk/default.nix
··· 33 sha256 = "1zlh44w67py416hkvw6nrfmjickc2d43v51vcli5p374d5sw84ql"; 34 }; 35 36 postPatch = '' 37 substituteInPlace linux/qphotorec.desktop \ 38 --replace "/usr" "$out"
··· 33 sha256 = "1zlh44w67py416hkvw6nrfmjickc2d43v51vcli5p374d5sw84ql"; 34 }; 35 36 + patches = [ 37 + ./gcc-14-fixes.diff 38 + ]; 39 + 40 postPatch = '' 41 substituteInPlace linux/qphotorec.desktop \ 42 --replace "/usr" "$out"
+15
pkgs/tools/system/testdisk/gcc-14-fixes.diff
···
··· 1 + diff --git a/src/ntfs_io.c b/src/ntfs_io.c 2 + index 7f57edd..4b718bb 100644 3 + --- a/src/ntfs_io.c 4 + +++ b/src/ntfs_io.c 5 + @@ -154,8 +154,8 @@ static int ntfs_device_testdisk_io_stat(struct ntfs_device *dev, struct stat *bu 6 + return -1; 7 + } 8 + 9 + -static int ntfs_device_testdisk_io_ioctl(struct ntfs_device *dev, int request, 10 + - void *argp) 11 + +static int ntfs_device_testdisk_io_ioctl(struct ntfs_device *dev, 12 + + unsigned long request, void *argp) 13 + { 14 + log_warning( "ntfs_device_testdisk_io_ioctl() unimplemented\n"); 15 + #ifdef ENOTSUP