diff -ru rsync-2.6.9/flist.c src/flist.c
--- rsync-2.6.9/flist.c	2006-10-14 03:17:36.000000000 +0200
+++ src/flist.c	2025-06-11 15:44:03.072565994 +0200
@@ -1539,7 +1539,7 @@
 	}
 
 	qsort(flist->files, flist->count,
-	    sizeof flist->files[0], (int (*)())file_compare);
+	    sizeof flist->files[0], (int (*)(const void *, const void *))file_compare);
 
 	for (i = no_dups? 0 : flist->count; i < flist->count; i++) {
 		if (flist->files[i]->basename) {
diff -ru rsync-2.6.9/hlink.c src/hlink.c
--- rsync-2.6.9/hlink.c	2006-10-17 20:49:04.000000000 +0200
+++ src/hlink.c	2025-06-11 15:34:42.073256409 +0200
@@ -135,7 +135,7 @@
 	}
 
 	qsort(hlink_list, hlink_count,
-	    sizeof hlink_list[0], (int (*)()) hlink_compare);
+	    sizeof hlink_list[0], (int (*)(const void *, const void *)) hlink_compare);
 
 	if (!hlink_count) {
 		free(hlink_list);
diff -ru rsync-2.6.9/lib/pool_alloc.c src/lib/pool_alloc.c
--- rsync-2.6.9/lib/pool_alloc.c	2006-10-14 01:17:34.000000000 +0200
+++ src/lib/pool_alloc.c	2025-06-11 15:43:46.023425002 +0200
@@ -9,7 +9,7 @@
 	struct pool_extent	*live;		/* current extent for
 						 * allocations		*/
 	struct pool_extent	*free;		/* unfreed extent list	*/
-	void			(*bomb)();
+	void			(*bomb)(char *);
 						/* function to call if
 						 * malloc fails		*/
 	int			flags;
diff -ru rsync-2.6.9/syscall.c src/syscall.c
--- rsync-2.6.9/syscall.c	2006-04-26 01:51:15.000000000 +0200
+++ src/syscall.c	2025-06-11 11:49:45.932724014 +0200
@@ -250,9 +250,9 @@
 {
 #ifdef HAVE_LSEEK64
 #if !SIZEOF_OFF64_T
-	OFF_T lseek64();
+	OFF_T lseek64(int, OFF_T, int);
 #else
-	off64_t lseek64();
+	off64_t lseek64(int, off64_t, int);
 #endif
 	return lseek64(fd, offset, whence);
 #else
