[PATCH] ftpd: Make socket timeout optional
Chris Johns
chrisj at rtems.org
Tue Dec 19 06:24:56 UTC 2023
On 6/12/2023 11:10 pm, Sebastian Huber wrote:
> This feature is not supported by lwIP.
> ---
> cpukit/ftpd/ftpd.c | 13 ++++---------
> 1 file changed, 4 insertions(+), 9 deletions(-)
>
> diff --git a/cpukit/ftpd/ftpd.c b/cpukit/ftpd/ftpd.c
> index ceb5c5d5b9..fe5f190242 100644
> --- a/cpukit/ftpd/ftpd.c
> +++ b/cpukit/ftpd/ftpd.c
> @@ -576,7 +576,7 @@ send_reply(FTPD_SessionInfo_t *info, int code, const char *text)
> * Output parameters:
> * returns 1 on success, 0 on failure.
> */
> -static int
> +static void
> set_socket_timeout(int s, int seconds)
> {
> int res = 0;
I am seeing a warning:
../../../cpukit/ftpd/ftpd.c: In function 'set_socket_timeout':
../../../cpukit/ftpd/ftpd.c:582:7: warning: unused variable 'res'
[-Wunused-variable]
582 | int res = 0;
| ^~~
Consider the fix approved :)
Chris
More information about the devel
mailing list