From 76369501dab992fa4d5451c36b3cbd74896b97a1 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Mon, 24 Jun 2024 21:56:08 +0100 Subject: Fix issues with GCC 14. * ftpfts/ftpfs: use appropriate function signature for interrupt_check. * pfinet/Makefile: turn off warnings in Linux driver code that are now errors in GCC 14. * pfinet/glue-include/linux/socket.h: remove duplicate functions. These are implemented in linux-src/net/core/iovec.c. Message-ID: --- ftpfs/ftpfs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ftpfs') diff --git a/ftpfs/ftpfs.c b/ftpfs/ftpfs.c index 794439b4..ba77caed 100644 --- a/ftpfs/ftpfs.c +++ b/ftpfs/ftpfs.c @@ -51,8 +51,13 @@ struct ftpfs *ftpfs; /* Parameters describing the server we're connecting to. */ struct ftp_conn_params *ftpfs_ftp_params = 0; +static int interrupt_check_hook (struct ftp_conn *) +{ + return ports_self_interrupted (); +} + /* customization hooks. */ -struct ftp_conn_hooks ftpfs_ftp_hooks = { interrupt_check: ports_self_interrupted }; +struct ftp_conn_hooks ftpfs_ftp_hooks = { interrupt_check: interrupt_check_hook }; /* The (user-specified) name of the SERVER:FILESYSTEM we're connected too. */ char *ftpfs_remote_fs; -- cgit v1.2.3