[PATCH] telnetd: Ignore setsockopt() return status
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Oct 9 06:39:43 UTC 2018
Update #3529.
---
cpukit/telnetd/pty.c | 2 +-
cpukit/telnetd/telnetd.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpukit/telnetd/pty.c b/cpukit/telnetd/pty.c
index e32d2eacb9..7a47fddbc9 100644
--- a/cpukit/telnetd/pty.c
+++ b/cpukit/telnetd/pty.c
@@ -117,7 +117,7 @@ char *telnet_get_pty(rtems_pty_context *pty, int socket)
/* set a long polling interval to save CPU time */
t.tv_sec=2;
t.tv_usec=00000;
- setsockopt(socket, SOL_SOCKET, SO_RCVTIMEO, &t, sizeof(t));
+ (void)setsockopt(socket, SOL_SOCKET, SO_RCVTIMEO, &t, sizeof(t));
/* inform the client that we will echo */
send_iac(pty, IAC_WILL, 1);
diff --git a/cpukit/telnetd/telnetd.c b/cpukit/telnetd/telnetd.c
index 81c03b164b..650b0f9418 100644
--- a/cpukit/telnetd/telnetd.c
+++ b/cpukit/telnetd/telnetd.c
@@ -213,7 +213,7 @@ rtems_task_telnetd(void *task_argument)
perror("telnetd:socket");
rtems_task_exit();
};
- setsockopt(des_socket,SOL_SOCKET,SO_KEEPALIVE,&i,sizeof(i));
+ (void)setsockopt(des_socket,SOL_SOCKET,SO_KEEPALIVE,&i,sizeof(i));
memset(&srv,0,sizeof(srv));
srv.sin.sin_family=AF_INET;
--
2.16.4
More information about the devel
mailing list